]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
x86: nmi_32.c cleanup - use for_each_online_cpu helper
authorCyrill Gorcunov <gorcunov@gmail.com>
Sat, 24 May 2008 15:36:39 +0000 (19:36 +0400)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 20:32:51 +0000 (22:32 +0200)
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>
arch/x86/kernel/nmi_32.c

index d0b0684bde9ece116df6f07e25ddd73179acf9aa..c6d0777aaf90775f54b055de96fa6a91179f78f7 100644 (file)
@@ -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) {