Commit b791ccef authored by Jesper Juhl's avatar Jesper Juhl Committed by Linus Torvalds

[PATCH] fix signed vs unsigned in nmi watchdog

Fix "signed vs unsigned" in nmi_watchdog_tick.
Signed-off-by: default avatarJesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ca43b317
...@@ -529,7 +529,8 @@ void nmi_watchdog_tick (struct pt_regs * regs) ...@@ -529,7 +529,8 @@ void nmi_watchdog_tick (struct pt_regs * regs)
* always switch the stack NMI-atomically, it's safe to use * always switch the stack NMI-atomically, it's safe to use
* smp_processor_id(). * 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; sum = per_cpu(irq_stat, cpu).apic_timer_irqs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment