aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asm-x86/mach-default/mach_apic.h7
-rw-r--r--include/asm-x86/processor.h3
-rw-r--r--include/asm-x86/proto.h4
3 files changed, 5 insertions, 9 deletions
diff --git a/include/asm-x86/mach-default/mach_apic.h b/include/asm-x86/mach-default/mach_apic.h
index 0a6634f62abe..21003b56ae95 100644
--- a/include/asm-x86/mach-default/mach_apic.h
+++ b/include/asm-x86/mach-default/mach_apic.h
@@ -109,13 +109,8 @@ static inline int cpu_to_logical_apicid(int cpu)
109 109
110static inline int cpu_present_to_apicid(int mps_cpu) 110static inline int cpu_present_to_apicid(int mps_cpu)
111{ 111{
112#ifdef CONFIG_X86_64 112 if (mps_cpu < NR_CPUS && cpu_present(mps_cpu))
113 if (cpu_present(mps_cpu))
114 return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu); 113 return (int)per_cpu(x86_bios_cpu_apicid, mps_cpu);
115#else
116 if (mps_cpu < get_physical_broadcast())
117 return mps_cpu;
118#endif
119 else 114 else
120 return BAD_APICID; 115 return BAD_APICID;
121} 116}
diff --git a/include/asm-x86/processor.h b/include/asm-x86/processor.h
index 2e7974ec77ec..559105220a47 100644
--- a/include/asm-x86/processor.h
+++ b/include/asm-x86/processor.h
@@ -3,9 +3,6 @@
3 3
4#include <asm/processor-flags.h> 4#include <asm/processor-flags.h>
5 5
6/* migration helper, for KVM - will be removed in 2.6.25: */
7#define Xgt_desc_struct desc_ptr
8
9/* Forward declaration, a strange C thing */ 6/* Forward declaration, a strange C thing */
10struct task_struct; 7struct task_struct;
11struct mm_struct; 8struct mm_struct;
diff --git a/include/asm-x86/proto.h b/include/asm-x86/proto.h
index 1e17bcce450e..6c8b41b03f6d 100644
--- a/include/asm-x86/proto.h
+++ b/include/asm-x86/proto.h
@@ -20,7 +20,11 @@ extern void syscall32_cpu_init(void);
20 20
21extern void check_efer(void); 21extern void check_efer(void);
22 22
23#ifdef CONFIG_X86_BIOS_REBOOT
23extern int reboot_force; 24extern int reboot_force;
25#else
26static const int reboot_force = 0;
27#endif
24 28
25long do_arch_prctl(struct task_struct *task, int code, unsigned long addr); 29long do_arch_prctl(struct task_struct *task, int code, unsigned long addr);
26 30