aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/smp.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-11 17:47:49 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-11 17:47:49 +0100
commit5536c6247b0bb424535e31d125aeafd7e93e226a (patch)
treec378ae7710c7aeff327d5cc4d87a5d06da986973 /xen/arch/x86/smp.c
parent6f394524c2ac1db90e03ad67d4b1c71885e95699 (diff)
downloadxen-5536c6247b0bb424535e31d125aeafd7e93e226a.tar.gz
xen-5536c6247b0bb424535e31d125aeafd7e93e226a.tar.bz2
xen-5536c6247b0bb424535e31d125aeafd7e93e226a.zip
x86: Do not include apic.h/io_apic.h from asm/smp.h
...and fix up the ensuing fall-out of implicit dependencies Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/smp.c')
-rw-r--r--xen/arch/x86/smp.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/xen/arch/x86/smp.c b/xen/arch/x86/smp.c
index 650835ff1f..239dde6fb7 100644
--- a/xen/arch/x86/smp.c
+++ b/xen/arch/x86/smp.c
@@ -22,6 +22,16 @@
#include <asm/hvm/support.h>
#include <mach_apic.h>
+int hard_smp_processor_id(void)
+{
+ return get_apic_id();
+}
+
+int logical_smp_processor_id(void)
+{
+ return get_logical_apic_id();
+}
+
/*
* send_IPI_mask(cpumask, vector): sends @vector IPI to CPUs in @cpumask,
* excluding the local CPU. @cpumask may be empty.