mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
[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>
This commit is contained in:
parent
ca43b317fc
commit
b791ccef21
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user