summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2008-05-24 19:36:39 +0400
committerThomas Gleixner <tglx@linutronix.de>2008-05-25 22:32:51 +0200
commit7c2ba83f9a479eee6f302147767a30f3187fbd4b (patch)
treed22bc8631427089a9cad12699b6e8edbd2423221
parent96f9dcb10755e96eae706b9e869c0dc25adb3d74 (diff)
downloadop-kernel-dev-7c2ba83f9a479eee6f302147767a30f3187fbd4b.zip
op-kernel-dev-7c2ba83f9a479eee6f302147767a30f3187fbd4b.tar.gz
x86: nmi_32.c cleanup - use for_each_online_cpu helper
Since cpu_online_map is touched (by for_each_online_cpu) at moment when cpu_callin_map is already filled up we can get rid of its checking at all Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com> Cc: hpa@zytor.com Cc: mingo@redhat.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/kernel/nmi_32.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/arch/x86/kernel/nmi_32.c b/arch/x86/kernel/nmi_32.c
index d0b0684..c6d0777 100644
--- a/arch/x86/kernel/nmi_32.c
+++ b/arch/x86/kernel/nmi_32.c
@@ -108,13 +108,7 @@ int __init check_nmi_watchdog(void)
local_irq_enable();
mdelay((20*1000)/nmi_hz); // wait 20 ticks
- for_each_possible_cpu(cpu) {
-#ifdef CONFIG_SMP
- /* Check cpu_callin_map here because that is set
- after the timer is started. */
- if (!cpu_isset(cpu, cpu_callin_map))
- continue;
-#endif
+ for_each_online_cpu(cpu) {
if (!per_cpu(wd_enabled, cpu))
continue;
if (nmi_count(cpu) - prev_nmi_count[cpu] <= 5) {
OpenPOWER on IntegriCloud