Skip to content

Commit fae581e

Browse files
committed
genirq: Remove CHECK_IRQ_PER_CPU from core code
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 8f53f92 commit fae581e

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎kernel/irq/manage.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ int irq_can_set_affinity(unsigned int irq)
7373
{
7474
struct irq_desc *desc = irq_to_desc(irq);
7575

76-
if (CHECK_IRQ_PER_CPU(desc->status) || !desc->irq_data.chip ||
77-
!desc->irq_data.chip->irq_set_affinity)
76+
if ((desc->status & (IRQ_PER_CPU | IRQ_NO_BALANCING)) ||
77+
!desc->irq_data.chip || !desc->irq_data.chip->irq_set_affinity)
7878
return 0;
7979

8080
return 1;

‎kernel/irq/migration.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ void move_masked_irq(int irq)
1515
/*
1616
* Paranoia: cpu-local interrupts shouldn't be calling in here anyway.
1717
*/
18-
if (CHECK_IRQ_PER_CPU(desc->status)) {
18+
if (desc->status & (IRQ_PER_CPU | IRQ_NO_BALANCING)) {
1919
WARN_ON(1);
2020
return;
2121
}

0 commit comments

Comments
 (0)