initcalls: Add early_initcall() for modules
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>
This commit is contained in:
parent
f436f8bb73
commit
329bd4119c
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue