Skip to content

Commit

Permalink
genirq: Remove CHECK_IRQ_PER_CPU from core code
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gleixner <[email protected]>
  • Loading branch information
KAGA-KOKO committed Feb 19, 2011
1 parent 8f53f92 commit fae581e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kernel/irq/manage.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ int irq_can_set_affinity(unsigned int irq)
{
struct irq_desc *desc = irq_to_desc(irq);

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

return 1;
Expand Down
2 changes: 1 addition & 1 deletion kernel/irq/migration.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ void move_masked_irq(int irq)
/*
* Paranoia: cpu-local interrupts shouldn't be calling in here anyway.
*/
if (CHECK_IRQ_PER_CPU(desc->status)) {
if (desc->status & (IRQ_PER_CPU | IRQ_NO_BALANCING)) {
WARN_ON(1);
return;
}
Expand Down

0 comments on commit fae581e

Please sign in to comment.