Commit 2960d471 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] x86_64 uniproc build fix

From: Andi Kleen <ak@suse.de>

This fixes some more problems introduced by the IA32e merge on x86-64

- Make it compile on UP again.
- Let the microcode driver build as a module
parent ffe6dc3c
...@@ -33,4 +33,4 @@ bootflag-y += ../../i386/kernel/bootflag.o ...@@ -33,4 +33,4 @@ bootflag-y += ../../i386/kernel/bootflag.o
cpuid-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../i386/kernel/cpuid.o cpuid-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../i386/kernel/cpuid.o
topology-y += ../../i386/mach-default/topology.o topology-y += ../../i386/mach-default/topology.o
swiotlb-$(CONFIG_SWIOTLB) += ../../ia64/lib/swiotlb.o swiotlb-$(CONFIG_SWIOTLB) += ../../ia64/lib/swiotlb.o
microcode-$(CONFIG_MICROCODE) += ../../i386/kernel/microcode.o microcode-$(subst m,y,$(CONFIG_X86_CPUID)) += ../../i386/kernel/microcode.o
...@@ -588,6 +588,7 @@ static int __init init_amd(struct cpuinfo_x86 *c) ...@@ -588,6 +588,7 @@ static int __init init_amd(struct cpuinfo_x86 *c)
static void __init detect_ht(void) static void __init detect_ht(void)
{ {
#ifdef CONFIG_SMP
extern int phys_proc_id[NR_CPUS]; extern int phys_proc_id[NR_CPUS];
u32 eax, ebx, ecx, edx; u32 eax, ebx, ecx, edx;
...@@ -631,6 +632,7 @@ static void __init detect_ht(void) ...@@ -631,6 +632,7 @@ static void __init detect_ht(void)
printk(KERN_INFO "CPU: Physical Processor ID: %d\n", printk(KERN_INFO "CPU: Physical Processor ID: %d\n",
phys_proc_id[cpu]); phys_proc_id[cpu]);
} }
#endif
} }
#define LVL_1_INST 1 #define LVL_1_INST 1
......
...@@ -194,7 +194,9 @@ EXPORT_SYMBOL(atomic_dec_and_lock); ...@@ -194,7 +194,9 @@ EXPORT_SYMBOL(atomic_dec_and_lock);
EXPORT_SYMBOL(die_chain); EXPORT_SYMBOL(die_chain);
#ifdef CONFIG_SMP
EXPORT_SYMBOL(cpu_sibling_map); EXPORT_SYMBOL(cpu_sibling_map);
#endif
extern void do_softirq_thunk(void); extern void do_softirq_thunk(void);
EXPORT_SYMBOL_NOVERS(do_softirq_thunk); EXPORT_SYMBOL_NOVERS(do_softirq_thunk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment