diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mm_init.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mm/mm_init.c b/mm/mm_init.c index eaf0d3b47099..c6af41ea9994 100644 --- a/mm/mm_init.c +++ b/mm/mm_init.c | |||
@@ -7,6 +7,8 @@ | |||
7 | */ | 7 | */ |
8 | #include <linux/kernel.h> | 8 | #include <linux/kernel.h> |
9 | #include <linux/init.h> | 9 | #include <linux/init.h> |
10 | #include <linux/kobject.h> | ||
11 | #include <linux/module.h> | ||
10 | #include "internal.h" | 12 | #include "internal.h" |
11 | 13 | ||
12 | #ifdef CONFIG_DEBUG_MEMORY_INIT | 14 | #ifdef CONFIG_DEBUG_MEMORY_INIT |
@@ -134,3 +136,17 @@ static __init int set_mminit_loglevel(char *str) | |||
134 | } | 136 | } |
135 | early_param("mminit_loglevel", set_mminit_loglevel); | 137 | early_param("mminit_loglevel", set_mminit_loglevel); |
136 | #endif /* CONFIG_DEBUG_MEMORY_INIT */ | 138 | #endif /* CONFIG_DEBUG_MEMORY_INIT */ |
139 | |||
140 | struct kobject *mm_kobj; | ||
141 | EXPORT_SYMBOL_GPL(mm_kobj); | ||
142 | |||
143 | static int __init mm_sysfs_init(void) | ||
144 | { | ||
145 | mm_kobj = kobject_create_and_add("mm", kernel_kobj); | ||
146 | if (!mm_kobj) | ||
147 | return -ENOMEM; | ||
148 | |||
149 | return 0; | ||
150 | } | ||
151 | |||
152 | __initcall(mm_sysfs_init); | ||