Skip to content

Commit

Permalink
mm: bring back /sys/kernel/mm
Browse files Browse the repository at this point in the history
Commit da29bd3 ("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 <[email protected]>
Acked-by: Paul Gortmaker <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hugh Dickins authored and torvalds committed Jan 28, 2014
1 parent 40e05dd commit e82cb95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mm_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ static int __init mm_sysfs_init(void)

return 0;
}
pure_initcall(mm_sysfs_init);
postcore_initcall(mm_sysfs_init);

0 comments on commit e82cb95

Please sign in to comment.