summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2006-03-28 11:56:52 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2006-03-28 19:16:08 +0200
commitb791ccef21129f9c7e4ab8274d5d7a0ec0a2fb7c (patch)
tree20659079914031f1e7325624439b6b8f82c9c02b /arch
parent[PATCH] vfree does its own NULL check, no need to be explicit in oss/msnd.c (diff)
downloadlinux-b791ccef21129f9c7e4ab8274d5d7a0ec0a2fb7c.tar.xz
linux-b791ccef21129f9c7e4ab8274d5d7a0ec0a2fb7c.zip
[PATCH] fix signed vs unsigned in nmi watchdog
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/i386/kernel/nmi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/i386/kernel/nmi.c b/arch/i386/kernel/nmi.c
index 5ad6a2c92d27..d43b498ec745 100644
--- a/arch/i386/kernel/nmi.c
+++ b/arch/i386/kernel/nmi.c
@@ -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;