aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/include/asm/hardirq.h3
-rw-r--r--arch/arm/kernel/smp.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/include/asm/hardirq.h b/arch/arm/include/asm/hardirq.h
index 522fb23241ac..923eaa1ba83b 100644
--- a/arch/arm/include/asm/hardirq.h
+++ b/arch/arm/include/asm/hardirq.h
@@ -14,6 +14,9 @@ typedef struct {
14 14
15#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */ 15#include <linux/irq_cpustat.h> /* Standard mappings for irq_cpustat_t above */
16 16
17#define __inc_irq_stat(cpu, member) __IRQ_STAT(cpu, member)++
18#define __get_irq_stat(cpu, member) __IRQ_STAT(cpu, member)
19
17#if NR_IRQS > 512 20#if NR_IRQS > 512
18#define HARDIRQ_BITS 10 21#define HARDIRQ_BITS 10
19#elif NR_IRQS > 256 22#elif NR_IRQS > 256
diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
index 36d4b9140dcf..24131264ec2c 100644
--- a/arch/arm/kernel/smp.c
+++ b/arch/arm/kernel/smp.c
@@ -423,7 +423,7 @@ asmlinkage void __exception do_local_timer(struct pt_regs *regs)
423 int cpu = smp_processor_id(); 423 int cpu = smp_processor_id();
424 424
425 if (local_timer_ack()) { 425 if (local_timer_ack()) {
426 irq_stat[cpu].local_timer_irqs++; 426 __inc_irq_stat(cpu, local_timer_irqs);
427 ipi_timer(); 427 ipi_timer();
428 } 428 }
429 429
@@ -437,7 +437,7 @@ void show_local_irqs(struct seq_file *p)
437 seq_printf(p, "LOC: "); 437 seq_printf(p, "LOC: ");
438 438
439 for_each_present_cpu(cpu) 439 for_each_present_cpu(cpu)
440 seq_printf(p, "%10u ", irq_stat[cpu].local_timer_irqs); 440 seq_printf(p, "%10u ", __get_irq_stat(cpu, local_timer_irqs));
441 441
442 seq_putc(p, '\n'); 442 seq_putc(p, '\n');
443} 443}