aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/cpu/common.c
diff options
context:
space:
mode:
authorYinghai Lu <yhlu.kernel@gmail.com>2008-09-04 23:09:02 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-05 03:40:47 -0400
commitba51dced0b55eb62874e1646d5eeff344c3d4e67 (patch)
tree19712a27ce22717b98344261fa0881efe1b92725 /arch/x86/kernel/cpu/common.c
parent950ad7ff6ec17fc1b47abc95c5c74628eb1adf8b (diff)
x86: cpu/common.c, let 64-bit code have 32-bit only functions
No effect on 64-bit. Signed-off-by: Yinghai Lu <yhlu.kernel@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/cpu/common.c')
-rw-r--r--arch/x86/kernel/cpu/common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c
index e0ca51f4f2d3..9128ba0c8d33 100644
--- a/arch/x86/kernel/cpu/common.c
+++ b/arch/x86/kernel/cpu/common.c
@@ -93,6 +93,7 @@ DEFINE_PER_CPU_PAGE_ALIGNED(struct gdt_page, gdt_page) = { .gdt = {
93#endif 93#endif
94EXPORT_PER_CPU_SYMBOL_GPL(gdt_page); 94EXPORT_PER_CPU_SYMBOL_GPL(gdt_page);
95 95
96#ifdef CONFIG_X86_32
96static int cachesize_override __cpuinitdata = -1; 97static int cachesize_override __cpuinitdata = -1;
97static int disable_x86_serial_nr __cpuinitdata = 1; 98static int disable_x86_serial_nr __cpuinitdata = 1;
98 99
@@ -195,6 +196,13 @@ static int __init x86_serial_nr_setup(char *s)
195 return 1; 196 return 1;
196} 197}
197__setup("serialnumber", x86_serial_nr_setup); 198__setup("serialnumber", x86_serial_nr_setup);
199#else
200/* Probe for the CPUID instruction */
201static inline int have_cpuid_p(void)
202{
203 return 1;
204}
205#endif
198 206
199__u32 cleared_cpu_caps[NCAPINTS] __cpuinitdata; 207__u32 cleared_cpu_caps[NCAPINTS] __cpuinitdata;
200 208