Commit 0fa9c2fa authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[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
parent 3d614679
...@@ -19,11 +19,13 @@ ...@@ -19,11 +19,13 @@
extern irq_cpustat_t irq_stat[]; /* defined in asm/hardirq.h */ 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 #ifdef CONFIG_SMP
#define __IRQ_STAT(cpu, member) (irq_stat[cpu].member) #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
#else #else
#define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member) #define __IRQ_STAT(cpu, member) ((void)(cpu), irq_stat[0].member)
#endif #endif
#endif
/* arch independent irq_stat fields */ /* arch independent irq_stat fields */
#define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending) #define softirq_pending(cpu) __IRQ_STAT((cpu), __softirq_pending)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment