Skip to content

Commit

Permalink
initcalls: Add early_initcall() for modules
Browse files Browse the repository at this point in the history
Complete the early_initcall() API by making it available in modules
too. To be used by the EDAC/MCE code.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andi Kleen <andi@firstfloor.org>
LKML-Reference: <20091002132321.GC28682@aftab>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Borislav Petkov authored and Ingo Molnar committed Oct 2, 2009
1 parent f436f8b commit 329bd41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/init.h
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ void __init parse_early_options(char *cmdline);
#else /* MODULE */

/* Don't use these in modules, but some people do... */
#define early_initcall(fn) module_init(fn)
#define core_initcall(fn) module_init(fn)
#define postcore_initcall(fn) module_init(fn)
#define arch_initcall(fn) module_init(fn)
Expand Down

0 comments on commit 329bd41

Please sign in to comment.