aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/cpu.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2010-12-09 16:17:33 +0000
committerKeir Fraser <keir@xen.org>2010-12-09 16:17:33 +0000
commita50b1b8ddb09d109eb7b990950298bd794ae1003 (patch)
treeac285c83235a3fc0899cbebbf32908cd44e60f58 /xen/common/cpu.c
parentd34920f300efb17a1cbd5dc3fefd0d949d529ba1 (diff)
downloadxen-a50b1b8ddb09d109eb7b990950298bd794ae1003.tar.gz
xen-a50b1b8ddb09d109eb7b990950298bd794ae1003.tar.bz2
xen-a50b1b8ddb09d109eb7b990950298bd794ae1003.zip
Add CPU_STARTING notifier during CPU bringup.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/cpu.c')
-rw-r--r--xen/common/cpu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/common/cpu.c b/xen/common/cpu.c
index b7bf377e00..2a248275a2 100644
--- a/xen/common/cpu.c
+++ b/xen/common/cpu.c
@@ -155,6 +155,14 @@ int cpu_up(unsigned int cpu)
return err;
}
+void notify_cpu_starting(unsigned int cpu)
+{
+ void *hcpu = (void *)(long)cpu;
+ int notifier_rc = notifier_call_chain(
+ &cpu_chain, CPU_STARTING, hcpu, NULL);
+ BUG_ON(notifier_rc != NOTIFY_DONE);
+}
+
static cpumask_t frozen_cpus;
int disable_nonboot_cpus(void)