Skip to content

Commit 8f53f92

Browse files
committed
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>
1 parent 6a58fb3 commit 8f53f92

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎include/linux/irq.h‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ typedef void (*irq_flow_handler_t)(unsigned int irq,
7878
IRQ_NOAUTOEN | IRQ_MOVE_PCNTXT | IRQ_LEVEL | IRQ_NO_BALANCING | \
7979
IRQ_PER_CPU | IRQ_NESTED_THREAD)
8080

81-
# define CHECK_IRQ_PER_CPU(var) ((var) & IRQ_PER_CPU)
82-
# define IRQ_NO_BALANCING_MASK (IRQ_PER_CPU | IRQ_NO_BALANCING)
81+
#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+
}
8387

8488
/*
8589
* Return value for chip->irq_set_affinity()

0 commit comments

Comments
 (0)