aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/genx2apic_uv_x.c
diff options
context:
space:
mode:
authorMike Travis <travis@sgi.com>2008-10-27 10:51:20 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-27 14:50:42 -0400
commit69a72a0e9337aad8c730e8e9942d5aa022bc4c5c (patch)
treeda298e9cf425ec667132a02270de7807aa32a483 /arch/x86/kernel/genx2apic_uv_x.c
parent7f1baa063e2582dd52d83bb31508e9e84468c666 (diff)
x86/uv: update SCIR driver to use the idle_cpu() function
Impact: cleanup Change UV heartbeat function to use idle_cpu to determine cpu's "idleness". Realign uv_hub definitions. Signed-of-by: Mike Travis <travis@sgi.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/genx2apic_uv_x.c')
-rw-r--r--arch/x86/kernel/genx2apic_uv_x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/genx2apic_uv_x.c b/arch/x86/kernel/genx2apic_uv_x.c
index 84367d84bb10..85fb7dd48f67 100644
--- a/arch/x86/kernel/genx2apic_uv_x.c
+++ b/arch/x86/kernel/genx2apic_uv_x.c
@@ -370,8 +370,8 @@ static void uv_heartbeat(unsigned long ignored)
370 /* flip heartbeat bit */ 370 /* flip heartbeat bit */
371 bits ^= SCIR_CPU_HEARTBEAT; 371 bits ^= SCIR_CPU_HEARTBEAT;
372 372
373 /* are we the idle thread? */ 373 /* is this cpu idle? */
374 if (current->pid == 0) 374 if (idle_cpu(raw_smp_processor_id()))
375 bits &= ~SCIR_CPU_ACTIVITY; 375 bits &= ~SCIR_CPU_ACTIVITY;
376 else 376 else
377 bits |= SCIR_CPU_ACTIVITY; 377 bits |= SCIR_CPU_ACTIVITY;