diff options
Diffstat (limited to 'arch/sparc64/kernel/cpu.c')
-rw-r--r-- | arch/sparc64/kernel/cpu.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/sparc64/kernel/cpu.c b/arch/sparc64/kernel/cpu.c index d6cdf9162..2c96a83e9 100644 --- a/arch/sparc64/kernel/cpu.c +++ b/arch/sparc64/kernel/cpu.c @@ -6,6 +6,8 @@ #include <linux/kernel.h> #include <linux/init.h> +#include <linux/sched.h> +#include <linux/smp.h> #include <asm/asi.h> #include <asm/system.h> #include <asm/fpumacro.h> @@ -56,12 +58,7 @@ __initfunc(void cpu_probe(void)) long ver, fpu_vers; long fprs; -#ifndef __SMP__ - cpuid = 0; -#else -#error SMP not supported on sparc64 yet - /* cpuid = get_cpuid(); */ -#endif + cpuid = smp_processor_id(); fprs = fprs_read (); fprs_write (FPRS_FEF); |