aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/smp.h
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/include/asm-x86/smp.h
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/include/asm-x86/smp.h')
-rw-r--r--xen/include/asm-x86/smp.h23
1 files changed, 2 insertions, 21 deletions
diff --git a/xen/include/asm-x86/smp.h b/xen/include/asm-x86/smp.h
index d2a4334ae6..76413e70b9 100644
--- a/xen/include/asm-x86/smp.h
+++ b/xen/include/asm-x86/smp.h
@@ -11,15 +11,9 @@
#include <asm/current.h>
#endif
-#ifdef CONFIG_X86_LOCAL_APIC
#ifndef __ASSEMBLY__
#include <asm/bitops.h>
#include <asm/mpspec.h>
-#ifdef CONFIG_X86_IO_APIC
-#include <asm/io_apic.h>
-#endif
-#include <asm/apic.h>
-#endif
#endif
#define BAD_APICID -1U
@@ -64,21 +58,8 @@ int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm);
*/
#define raw_smp_processor_id() (get_processor_id())
-#ifdef CONFIG_X86_LOCAL_APIC
-
-static inline int hard_smp_processor_id(void)
-{
- /* we don't want to mark this access volatile - bad code generation */
- return get_apic_id();
-}
-
-static __inline int logical_smp_processor_id(void)
-{
- /* we don't want to mark this access volatile - bad code generation */
- return get_logical_apic_id();
-}
-
-#endif
+int hard_smp_processor_id(void);
+int logical_smp_processor_id(void);
#endif /* !__ASSEMBLY__ */