aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/include
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2010-11-15 09:15:03 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-12-20 10:06:58 -0500
commit46c48f222f568decb881a552caa1c8f9c96c521e (patch)
treed84e79cfc44af8d99eb23e2aebee376feb55ef8a /arch/arm/include
parentec405ea9fe5fdeb40824edba7082803b3e98f176 (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/include')
-rw-r--r--arch/arm/include/asm/hardirq.h3
1 files changed, 3 insertions, 0 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