aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc64/kernel/setup.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@sunset.davemloft.net>2006-02-17 11:38:06 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-20 04:13:24 -0500
commitebd8c56c5ae154e2c6cfb7453a76a4e7265b2377 (patch)
tree155df85100a1316ac103dcaed140d20ddc72c855 /arch/sparc64/kernel/setup.c
parent101d5c18a928ef82b6c7bf99a9eaa536b5ccf593 (diff)
[SPARC64]: Fix uniprocessor IRQ targetting on SUN4V.
We need to use the real hardware processor ID when targetting interrupts, not the "define to 0" thing the uniprocessor build gives us. Also, fill in the Node-ID and Agent-ID fields properly on sun4u/Safari. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/kernel/setup.c')
-rw-r--r--arch/sparc64/kernel/setup.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c
index 9b0c409d5b6a..77066f1bbe2f 100644
--- a/arch/sparc64/kernel/setup.c
+++ b/arch/sparc64/kernel/setup.c
@@ -222,7 +222,6 @@ static struct pt_regs fake_swapper_regs = { { 0, }, 0, 0, 0, 0 };
222 222
223static void __init per_cpu_patch(void) 223static void __init per_cpu_patch(void)
224{ 224{
225#ifdef CONFIG_SMP
226 struct cpuid_patch_entry *p; 225 struct cpuid_patch_entry *p;
227 unsigned long ver; 226 unsigned long ver;
228 int is_jbus; 227 int is_jbus;
@@ -233,8 +232,8 @@ static void __init per_cpu_patch(void)
233 is_jbus = 0; 232 is_jbus = 0;
234 if (tlb_type != hypervisor) { 233 if (tlb_type != hypervisor) {
235 __asm__ ("rdpr %%ver, %0" : "=r" (ver)); 234 __asm__ ("rdpr %%ver, %0" : "=r" (ver));
236 is_jbus = ((ver >> 32) == __JALAPENO_ID || 235 is_jbus = ((ver >> 32UL) == __JALAPENO_ID ||
237 (ver >> 32) == __SERRANO_ID); 236 (ver >> 32UL) == __SERRANO_ID);
238 } 237 }
239 238
240 p = &__cpuid_patch; 239 p = &__cpuid_patch;
@@ -279,7 +278,6 @@ static void __init per_cpu_patch(void)
279 278
280 p++; 279 p++;
281 } 280 }
282#endif
283} 281}
284 282
285static void __init sun4v_patch(void) 283static void __init sun4v_patch(void)