diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-11-15 09:15:03 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-12-20 10:06:58 -0500 |
commit | 46c48f222f568decb881a552caa1c8f9c96c521e (patch) | |
tree | d84e79cfc44af8d99eb23e2aebee376feb55ef8a /arch/arm/kernel | |
parent | ec405ea9fe5fdeb40824edba7082803b3e98f176 (diff) |
ARM: SMP: provide accessors for irq_stat data
Provide __inc_irq_stat() and __get_irq_stat() to increment and
read the irq stat counters.
Reviewed-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/smp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 | } |