path: root/mm/page_owner.c
diff options
authorPaul Gortmaker <>2015-05-01 21:57:34 -0400
committerPaul Gortmaker <>2015-06-16 14:12:35 -0400
commit44c5af96de8230ff7268500f48995f9fea5cffe7 (patch)
tree3bce36ccd33217277c6388021b182db948c4b387 /mm/page_owner.c
parent4c7217f1f0fe70af7b9e213ef16f1d2f4a4bacaf (diff)
mm/page_owner.c: use late_initcall to hook in enabling
This was using module_init, but there is no way this code can be modular. In the non-modular case, a module_init becomes a device_initcall, but this really isn't a device. So we should choose a more appropriate initcall bucket to put it in. In order of execution, our close choices are: fs_initcall(fn) rootfs_initcall(fn) device_initcall(fn) late_initcall(fn) ..and since the initcall here goes after debugfs, we really should be post-rootfs, which means late_initcall makes the most sense here. Cc: Andrew Morton <> Cc: Signed-off-by: Paul Gortmaker <>
Diffstat (limited to 'mm/page_owner.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/page_owner.c b/mm/page_owner.c
index 0993f5f36b01..bd5f842b56d2 100644
--- a/mm/page_owner.c
+++ b/mm/page_owner.c
@@ -310,4 +310,4 @@ static int __init pageowner_init(void)
return 0;