提交 f59a9310 编写于 作者: H Hiroshi Shimamoto 提交者: Ingo Molnar

x86: nmi and irq counters are unsigned in nmi_64.c

__nmi_count, apic_timer_irqs and irq0_irqs are unsigned.
Signed-off-by: NHiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
Signed-off-by: NIngo Molnar <mingo@elte.hu>
上级 f784946d
...@@ -79,7 +79,7 @@ static __init void nmi_cpu_busy(void *data) ...@@ -79,7 +79,7 @@ static __init void nmi_cpu_busy(void *data)
int __init check_nmi_watchdog(void) int __init check_nmi_watchdog(void)
{ {
int *prev_nmi_count; unsigned int *prev_nmi_count;
int cpu; int cpu;
if ((nmi_watchdog == NMI_NONE) || (nmi_watchdog == NMI_DISABLED)) if ((nmi_watchdog == NMI_NONE) || (nmi_watchdog == NMI_DISABLED))
...@@ -316,7 +316,7 @@ EXPORT_SYMBOL(touch_nmi_watchdog); ...@@ -316,7 +316,7 @@ EXPORT_SYMBOL(touch_nmi_watchdog);
notrace __kprobes int notrace __kprobes int
nmi_watchdog_tick(struct pt_regs *regs, unsigned reason) nmi_watchdog_tick(struct pt_regs *regs, unsigned reason)
{ {
int sum; unsigned int sum;
int touched = 0; int touched = 0;
int cpu = smp_processor_id(); int cpu = smp_processor_id();
int rc = 0; int rc = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册