diff options
author | Mike Travis <travis@sgi.com> | 2008-10-27 10:51:20 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-27 14:50:42 -0400 |
commit | 69a72a0e9337aad8c730e8e9942d5aa022bc4c5c (patch) | |
tree | da298e9cf425ec667132a02270de7807aa32a483 /arch | |
parent | 7f1baa063e2582dd52d83bb31508e9e84468c666 (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')
-rw-r--r-- | arch/x86/include/asm/uv/uv_hub.h | 26 | ||||
-rw-r--r-- | arch/x86/kernel/genx2apic_uv_x.c | 4 |
2 files changed, 15 insertions, 15 deletions
diff --git a/arch/x86/include/asm/uv/uv_hub.h b/arch/x86/include/asm/uv/uv_hub.h index 400776dba9b5..0ee12928e9ee 100644 --- a/arch/x86/include/asm/uv/uv_hub.h +++ b/arch/x86/include/asm/uv/uv_hub.h | |||
@@ -128,19 +128,19 @@ struct uv_scir_s { | |||
128 | * They are kept together in a struct to minimize cache misses. | 128 | * They are kept together in a struct to minimize cache misses. |
129 | */ | 129 | */ |
130 | struct uv_hub_info_s { | 130 | struct uv_hub_info_s { |
131 | unsigned long global_mmr_base; | 131 | unsigned long global_mmr_base; |
132 | unsigned long gpa_mask; | 132 | unsigned long gpa_mask; |
133 | unsigned long gnode_upper; | 133 | unsigned long gnode_upper; |
134 | unsigned long lowmem_remap_top; | 134 | unsigned long lowmem_remap_top; |
135 | unsigned long lowmem_remap_base; | 135 | unsigned long lowmem_remap_base; |
136 | unsigned short pnode; | 136 | unsigned short pnode; |
137 | unsigned short pnode_mask; | 137 | unsigned short pnode_mask; |
138 | unsigned short coherency_domain_number; | 138 | unsigned short coherency_domain_number; |
139 | unsigned short numa_blade_id; | 139 | unsigned short numa_blade_id; |
140 | unsigned char blade_processor_id; | 140 | unsigned char blade_processor_id; |
141 | unsigned char m_val; | 141 | unsigned char m_val; |
142 | unsigned char n_val; | 142 | unsigned char n_val; |
143 | struct uv_scir_s scir; | 143 | struct uv_scir_s scir; |
144 | }; | 144 | }; |
145 | 145 | ||
146 | DECLARE_PER_CPU(struct uv_hub_info_s, __uv_hub_info); | 146 | DECLARE_PER_CPU(struct uv_hub_info_s, __uv_hub_info); |
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; |