[PATCH] fix signed vs unsigned in nmi watchdog
authorJesper Juhl <jesper.juhl@gmail.com>
Tue, 28 Mar 2006 09:56:52 +0000 (01:56 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 28 Mar 2006 17:16:08 +0000 (09:16 -0800)
Fix "signed vs unsigned" in nmi_watchdog_tick.

Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/nmi.c

index 5ad6a2c92d27e25f9c77633cf5012ea8d1f35243..d43b498ec745e2ea335d1282df274311eac62234 100644 (file)
@@ -529,7 +529,8 @@ void nmi_watchdog_tick (struct pt_regs * regs)
         * always switch the stack NMI-atomically, it's safe to use
         * smp_processor_id().
         */
-       int sum, cpu = smp_processor_id();
+       unsigned int sum;
+       int cpu = smp_processor_id();
 
        sum = per_cpu(irq_stat, cpu).apic_timer_irqs;