]> git.baikalelectronics.ru Git - kernel.git/commit
mm: bring back /sys/kernel/mm
authorHugh Dickins <hughd@google.com>
Tue, 28 Jan 2014 01:06:55 +0000 (17:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jan 2014 05:02:39 +0000 (21:02 -0800)
commitfd2bc4233230628ad8d157bea36d7977887137fd
tree49ecb4b3f233fe282baa1360c635b4772f39b85c
parentba3f912fa605bd1546563b6f52cd6b6c62183f9e
mm: bring back /sys/kernel/mm

Commit bfcc8d4d9753 ("mm/mm_init.c: make creation of the mm_kobj happen
earlier than device_initcall") changed to pure_initcall(mm_sysfs_init).

That's too early: mm_sysfs_init() depends on core_initcall(ksysfs_init)
to have made the kernel_kobj directory "kernel" in which to create "mm".

Make it postcore_initcall(mm_sysfs_init).  We could use core_initcall(),
and depend upon Makefile link order kernel/ mm/ fs/ ipc/ security/ ...
as core_initcall(debugfs_init) and core_initcall(securityfs_init) do;
but better not.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mm_init.c