git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'core/percpu' into perfcounters/core
[safe/jmp/linux-2.6]
/
arch
/
x86
/
include
/
asm
/
hardirq_32.h
diff --git
a/arch/x86/include/asm/hardirq_32.h
b/arch/x86/include/asm/hardirq_32.h
index
b3e475d
..
7838276
100644
(file)
--- a/
arch/x86/include/asm/hardirq_32.h
+++ b/
arch/x86/include/asm/hardirq_32.h
@@
-20,9
+20,14
@@
typedef struct {
DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
+/* We can have at most NR_VECTORS irqs routed to a cpu at a time */
+#define MAX_HARDIRQS_PER_CPU NR_VECTORS
+
#define __ARCH_IRQ_STAT
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
#define __ARCH_IRQ_STAT
#define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
+#define inc_irq_stat(member) (__get_cpu_var(irq_stat).member++)
+
void ack_bad_irq(unsigned int irq);
#include <linux/irq_cpustat.h>
void ack_bad_irq(unsigned int irq);
#include <linux/irq_cpustat.h>