diff options
Diffstat (limited to 'kernel/softirq.c')
-rw-r--r-- | kernel/softirq.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 267f7b763ebb..79ee8f1fc0e7 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -296,10 +296,16 @@ void irq_enter(void) | |||
296 | 296 | ||
297 | rcu_irq_enter(); | 297 | rcu_irq_enter(); |
298 | if (idle_cpu(cpu) && !in_interrupt()) { | 298 | if (idle_cpu(cpu) && !in_interrupt()) { |
299 | __irq_enter(); | 299 | /* |
300 | * Prevent raise_softirq from needlessly waking up ksoftirqd | ||
301 | * here, as softirq will be serviced on return from interrupt. | ||
302 | */ | ||
303 | local_bh_disable(); | ||
300 | tick_check_idle(cpu); | 304 | tick_check_idle(cpu); |
301 | } else | 305 | _local_bh_enable(); |
302 | __irq_enter(); | 306 | } |
307 | |||
308 | __irq_enter(); | ||
303 | } | 309 | } |
304 | 310 | ||
305 | #ifdef __ARCH_IRQ_EXIT_IRQS_DISABLED | 311 | #ifdef __ARCH_IRQ_EXIT_IRQS_DISABLED |