diff options
Diffstat (limited to 'kernel/irq/chip.c')
-rw-r--r-- | kernel/irq/chip.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/irq/chip.c b/kernel/irq/chip.c index 44b16a1ecd9a..9283d3300ea9 100644 --- a/kernel/irq/chip.c +++ b/kernel/irq/chip.c | |||
@@ -718,8 +718,9 @@ void irq_cpu_online(void) | |||
718 | raw_spin_lock_irqsave(&desc->lock, flags); | 718 | raw_spin_lock_irqsave(&desc->lock, flags); |
719 | 719 | ||
720 | chip = irq_data_get_irq_chip(&desc->irq_data); | 720 | chip = irq_data_get_irq_chip(&desc->irq_data); |
721 | 721 | if (chip && chip->irq_cpu_online && | |
722 | if (chip && chip->irq_cpu_online) | 722 | (!(chip->flags & IRQCHIP_ONOFFLINE_ENABLED) || |
723 | !(desc->istate & IRQS_DISABLED))) | ||
723 | chip->irq_cpu_online(&desc->irq_data); | 724 | chip->irq_cpu_online(&desc->irq_data); |
724 | 725 | ||
725 | raw_spin_unlock_irqrestore(&desc->lock, flags); | 726 | raw_spin_unlock_irqrestore(&desc->lock, flags); |
@@ -747,8 +748,9 @@ void irq_cpu_offline(void) | |||
747 | raw_spin_lock_irqsave(&desc->lock, flags); | 748 | raw_spin_lock_irqsave(&desc->lock, flags); |
748 | 749 | ||
749 | chip = irq_data_get_irq_chip(&desc->irq_data); | 750 | chip = irq_data_get_irq_chip(&desc->irq_data); |
750 | 751 | if (chip && chip->irq_cpu_offline && | |
751 | if (chip && chip->irq_cpu_offline) | 752 | (!(chip->flags & IRQCHIP_ONOFFLINE_ENABLED) || |
753 | !(desc->istate & IRQS_DISABLED))) | ||
752 | chip->irq_cpu_offline(&desc->irq_data); | 754 | chip->irq_cpu_offline(&desc->irq_data); |
753 | 755 | ||
754 | raw_spin_unlock_irqrestore(&desc->lock, flags); | 756 | raw_spin_unlock_irqrestore(&desc->lock, flags); |