x86: smp.h move boot_cpu_id declartion to cpu.h
authorJaswinder Singh Rajput <jaswinder@infradead.org>
Wed, 7 Jan 2009 16:08:59 +0000 (21:38 +0530)
committerIngo Molnar <mingo@elte.hu>
Wed, 7 Jan 2009 20:48:26 +0000 (21:48 +0100)
Impact: cleanup

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/include/asm/cpu.h
arch/x86/include/asm/smp.h
arch/x86/kernel/io_apic.c
drivers/pci/intr_remapping.c

index 89edafb9339012e33065ce2bd7a45d8af4f51079..f03b23e328645e319118d5ed06729b2a7e34887c 100644 (file)
@@ -31,4 +31,11 @@ extern void arch_unregister_cpu(int);
 #endif
 
 DECLARE_PER_CPU(int, cpu_state);
+
+#ifdef CONFIG_X86_HAS_BOOT_CPU_ID
+extern unsigned char boot_cpu_id;
+#else
+#define boot_cpu_id                            0
+#endif
+
 #endif /* _ASM_X86_CPU_H */
index c975b6f83c68f6c6b772b62992144abdd2f9a7f7..74ad9ef6ae023422cbbde2b86e3aad27e5adfb91 100644 (file)
@@ -212,11 +212,5 @@ static inline int hard_smp_processor_id(void)
 
 #endif /* CONFIG_X86_LOCAL_APIC */
 
-#ifdef CONFIG_X86_HAS_BOOT_CPU_ID
-extern unsigned char boot_cpu_id;
-#else
-#define boot_cpu_id    0
-#endif
-
 #endif /* __ASSEMBLY__ */
 #endif /* _ASM_X86_SMP_H */
index 1c4a1302536c692dc935acecad4720dbe2395fa9..109c91db2026791da3567f228733bbd506d3b8fc 100644 (file)
@@ -46,6 +46,7 @@
 #include <asm/idle.h>
 #include <asm/io.h>
 #include <asm/smp.h>
+#include <asm/cpu.h>
 #include <asm/desc.h>
 #include <asm/proto.h>
 #include <asm/acpi.h>
index f78371b2252976efb8ab86c7eaf87a7240949ea5..5a57753ea9fcdfd47f6704bc488084ad94cb8a8a 100644 (file)
@@ -6,6 +6,7 @@
 #include <linux/irq.h>
 #include <asm/io_apic.h>
 #include <asm/smp.h>
+#include <asm/cpu.h>
 #include <linux/intel-iommu.h>
 #include "intr_remapping.h"