diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-08 10:50:00 -0500 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2011-02-19 06:58:19 -0500 |
commit | 8f53f92404bead2ab2154d45c8f508880bb5d95d (patch) | |
tree | 08a3f21df856f7d9b9561e6cf14462092cee8d0d /include/linux/irq.h | |
parent | 6a58fb3bad099076f36f0f30f44507bc3275cdb6 (diff) |
genirq: Make CHECK_IRQ_PER_CPU an inline and deprecate it
Its' too ugly and needs to go. The only users are core code and
parisc. Core code does not need it and parisc gets a new check once
IRQ_PER_CPU is reflected in irq_data.state.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/irq.h')
-rw-r--r-- | include/linux/irq.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/linux/irq.h b/include/linux/irq.h index ab708f27a33b..3f607ad94220 100644 --- a/include/linux/irq.h +++ b/include/linux/irq.h | |||
@@ -78,8 +78,12 @@ typedef void (*irq_flow_handler_t)(unsigned int irq, | |||
78 | IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \ | 78 | IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \ |
79 | IRQ_PER_CPU | IRQ_NESTED_THREAD) | 79 | IRQ_PER_CPU | IRQ_NESTED_THREAD) |
80 | 80 | ||
81 | # define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU) | 81 | #define IRQ_NO_BALANCING_MASK (IRQ_PER_CPU | IRQ_NO_BALANCING) |
82 | # define IRQ_NO_BALANCING_MASK (IRQ_PER_CPU | IRQ_NO_BALANCING) | 82 | |
83 | static inline __deprecated bool CHECK_IRQ_PER_CPU(unsigned int status) | ||
84 | { | ||
85 | return status & IRQ_PER_CPU; | ||
86 | } | ||
83 | 87 | ||
84 | /* | 88 | /* |
85 | * Return value for chip->irq_set_affinity() | 89 | * Return value for chip->irq_set_affinity() |