aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/cpu.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2011-04-02 15:57:03 +0100
committerJan Beulich <jbeulich@novell.com>2011-04-02 15:57:03 +0100
commitd5298187b30d5806deda9088828fd29cad9237da (patch)
treed5306b6c7072fe95344f05751966a2ff60cf8abb /xen/common/cpu.c
parent06490f43250dddc40b4aaf0ff4995991f94e170a (diff)
downloadxen-d5298187b30d5806deda9088828fd29cad9237da.tar.gz
xen-d5298187b30d5806deda9088828fd29cad9237da.tar.bz2
xen-d5298187b30d5806deda9088828fd29cad9237da.zip
move register_cpu_notifier() into .init.text
With no modular drivers, all CPU notifier setup is supposed to happen during boot. There also is a respective comment in the function.=20 Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/common/cpu.c')
-rw-r--r--xen/common/cpu.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index 5cdfd0fb10..396eb58ad8 100644
--- a/xen/common/cpu.c
+++ b/xen/common/cpu.c
@@ -2,6 +2,7 @@
#include <xen/cpumask.h>
#include <xen/cpu.h>
#include <xen/event.h>
+#include <xen/init.h>
#include <xen/sched.h>
#include <xen/stop_machine.h>
@@ -53,7 +54,7 @@ void cpu_hotplug_done(void)
static NOTIFIER_HEAD(cpu_chain);
-void register_cpu_notifier(struct notifier_block *nb)
+void __init register_cpu_notifier(struct notifier_block *nb)
{
if ( !spin_trylock(&cpu_add_remove_lock) )
BUG(); /* Should never fail as we are called only during boot. */