]> git.karo-electronics.de Git - linux-beck.git/commitdiff
genirq: Make CHECK_IRQ_PER_CPU an inline and deprecate it
authorThomas Gleixner <tglx@linutronix.de>
Tue, 8 Feb 2011 15:50:00 +0000 (16:50 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 19 Feb 2011 11:58:19 +0000 (12:58 +0100)
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>
include/linux/irq.h

index ab708f27a33b9ce1e2be21dae0b29629df27227d..3f607ad942209e5fbb874e7a3380c937bfcac884 100644 (file)
@@ -78,8 +78,12 @@ typedef      void (*irq_flow_handler_t)(unsigned int irq,
         IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \
         IRQ_PER_CPU | IRQ_NESTED_THREAD)
 
-# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
-# define IRQ_NO_BALANCING_MASK (IRQ_PER_CPU | IRQ_NO_BALANCING)
+#define IRQ_NO_BALANCING_MASK  (IRQ_PER_CPU | IRQ_NO_BALANCING)
+
+static inline __deprecated bool CHECK_IRQ_PER_CPU(unsigned int status)
+{
+       return status & IRQ_PER_CPU;
+}
 
 /*
  * Return value for chip->irq_set_affinity()