diff options
| author | Andi Kleen <ak@muc.de> | 2002-02-25 21:19:05 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-02-25 21:19:05 -0800 |
| commit | 0fa9c2fa4896cf1b6557c9c3a20fc248f9f790af (patch) | |
| tree | 21d3b60563a26d8b6ba6c29e6e3ea478f0641a34 /include | |
| parent | 3d614679e2ee7bd3eec324dab28e0f7f15418b65 (diff) | |
[PATCH] x86_64 irqstat change
x86_64 does not have an irq_stat array. It puts the interrupt information
into its per CPU area instead, allowing more efficient access to it.
This patch allows the architecture to overwrite
the __IRQ_STAT access macro in linux/irq_cpustat.h.
It is required to make the x86_64 port compile.
-Andi
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/irq_cpustat.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/irq_cpustat.h b/include/linux/irq_cpustat.h index 24696e15dacc..dfd73c5ec60d 100644 --- a/include/linux/irq_cpustat.h +++ b/include/linux/irq_cpustat.h @@ -19,11 +19,13 @@ extern irq_cpustat_t irq_stat[]; /* defined in asm/hardirq.h */ +#ifndef __ARCH_IRQ_STAT /* Some architectures can do this more efficiently */ #ifdef CONFIG_SMP #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member) #else #define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member) #endif +#endif /* arch independent irq_stat fields */ #define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending) |
