[Devel] [PATCH rh7 8/9] mm/mm_init.c: make creation of the mm_kobj happen earlier than device_initcall

Vladimir Davydov vdavydov at virtuozzo.com
Mon Oct 26 00:49:24 PDT 2015


This patch backports the following mainstream commits:

da29bd36224b mm/mm_init.c: make creation of the mm_kobj happen earlier than device_initcall
e82cb95d626a mm: bring back /sys/kernel/mm

Needed for page_idle_init(), which is introduced later in the series, to
work.

Signed-off-by: Vladimir Davydov <vdavydov at virtuozzo.com>
---
 mm/mm_init.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/mm/mm_init.c b/mm/mm_init.c
index 12dd27a66518..730049350b37 100644
--- a/mm/mm_init.c
+++ b/mm/mm_init.c
@@ -155,5 +155,4 @@ static int __init mm_sysfs_init(void)
 
 	return 0;
 }
-
-__initcall(mm_sysfs_init);
+postcore_initcall(mm_sysfs_init);
-- 
2.1.4




More information about the Devel mailing list