mm: create /sys/kernel/mm
Add a kobject to create /sys/kernel/mm when sysfs is mounted. The kobject will exist regardless. This will allow for the hugepage related sysfs directories to exist under the mm "subsystem" directory. Add an ABI file appropriately. [kosaki.motohiro@jp.fujitsu.com: fix build] Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com> Cc: Nick Piggin <nickpiggin@yahoo.com.au> Cc: Mel Gorman <mel@csn.ul.ie> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
5e9426abe2
commit
ff7ea79cf7
@@ -186,6 +186,8 @@ extern struct kobject *kset_find_obj(struct kset *, const char *);
|
||||
|
||||
/* The global /sys/kernel/ kobject for people to chain off of */
|
||||
extern struct kobject *kernel_kobj;
|
||||
/* The global /sys/kernel/mm/ kobject for people to chain off of */
|
||||
extern struct kobject *mm_kobj;
|
||||
/* The global /sys/hypervisor/ kobject for people to chain off of */
|
||||
extern struct kobject *hypervisor_kobj;
|
||||
/* The global /sys/power/ kobject for people to chain off of */
|
||||
|
Reference in New Issue
Block a user