diff options
author | Yinghai Lu <yhlu.kernel@gmail.com> | 2008-09-04 23:09:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-09-05 03:40:47 -0400 |
commit | ba51dced0b55eb62874e1646d5eeff344c3d4e67 (patch) | |
tree | 19712a27ce22717b98344261fa0881efe1b92725 /arch/x86/kernel/cpu/common.c | |
parent | 950ad7ff6ec17fc1b47abc95c5c74628eb1adf8b (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.c | 8 |
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 |
94 | EXPORT_PER_CPU_SYMBOL_GPL(gdt_page); | 94 | EXPORT_PER_CPU_SYMBOL_GPL(gdt_page); |
95 | 95 | ||
96 | #ifdef CONFIG_X86_32 | ||
96 | static int cachesize_override __cpuinitdata = -1; | 97 | static int cachesize_override __cpuinitdata = -1; |
97 | static int disable_x86_serial_nr __cpuinitdata = 1; | 98 | static 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 */ | ||
201 | static 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 | ||