diff --git a/kernel/softirq.c b/kernel/softirq.c index 4eb3a0fa351e788297e7d14f0f56cec66d61c1ae..5ace266bc0e664defb68fa766c0b06bb126b2e7d 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -297,7 +297,7 @@ void irq_enter(void) int cpu = smp_processor_id(); rcu_irq_enter(); - if (idle_cpu(cpu) && !in_interrupt()) { + if (is_idle_task(current) && !in_interrupt()) { /* * Prevent raise_softirq from needlessly waking up ksoftirqd * here, as softirq will be serviced on return from interrupt.