Skip to content

Commit

Permalink
mm/page_owner.c: use late_initcall to hook in enabling
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: [email protected]
Signed-off-by: Paul Gortmaker <[email protected]>
  • Loading branch information
Paul Gortmaker committed Jun 16, 2015
1 parent 4c7217f commit 44c5af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/page_owner.c
Original file line number Diff line number Diff line change
Expand Up @@ -310,4 +310,4 @@ static int __init pageowner_init(void)

return 0;
}
module_init(pageowner_init)
late_initcall(pageowner_init)

0 comments on commit 44c5af9

Please sign in to comment.