Better interface for hooking early initcalls
authorEduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Sat, 26 Jul 2008 02:45:11 +0000 (19:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 26 Jul 2008 19:00:04 +0000 (12:00 -0700)
commitc2147a5092cfe13dbf3210e54e8a622015edeecc
treee34e0daee3cc0b19914a27d6f7f284b1fc22aa93
parent89081d17f7bb81d89fa1aa9b70f821c5cf4d39e9
Better interface for hooking early initcalls

Added early initcall (pre-SMP) support, using an identical interface to
that of regular initcalls.  Functions called from do_pre_smp_initcalls()
could be converted to use this cleaner interface.

This is required by CPU hotplug, because early users have to register
notifiers before going SMP.  One such CPU hotplug user is the relay
interface with buffer-only channels, which needs to register such a
notifier, to be usable in early code.  This in turn is used by kmemtrace.

Signed-off-by: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: Tom Zanussi <tzanussi@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/asm-generic/vmlinux.lds.h
include/linux/init.h
init/main.c