aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/kernel.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-14 15:22:48 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-14 15:22:48 +0100
commit2e4146ddc277d2ddd861646b8b1ba83182eb84bb (patch)
treeb89c9a44b6681359974a281096dc16f29dc6d304 /xen/common/kernel.c
parent2a814aeaaf1e2fe258ab72fc60bb86b7ca4cb102 (diff)
downloadxen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.gz
xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.bz2
xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.zip
x86: Implement cpu hotplug notifiers. Use them.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/kernel.c')
-rw-r--r--xen/common/kernel.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/xen/common/kernel.c b/xen/common/kernel.c
index 3a0c40fce4..61a798df4e 100644
--- a/xen/common/kernel.c
+++ b/xen/common/kernel.c
@@ -147,6 +147,22 @@ void add_taint(unsigned flag)
tainted |= flag;
}
+extern initcall_t __initcall_start, __presmp_initcall_end, __initcall_end;
+
+void __init do_presmp_initcalls(void)
+{
+ initcall_t *call;
+ for ( call = &__initcall_start; call < &__presmp_initcall_end; call++ )
+ (*call)();
+}
+
+void __init do_initcalls(void)
+{
+ initcall_t *call;
+ for ( call = &__presmp_initcall_end; call < &__initcall_end; call++ )
+ (*call)();
+}
+
# define DO(fn) long do_##fn
#endif