diff options
Diffstat (limited to 'kernel/softirq.c')
-rw-r--r-- | kernel/softirq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 4eb3a0fa351e..79b524767a24 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c | |||
@@ -744,9 +744,7 @@ static int run_ksoftirqd(void * __bind_cpu) | |||
744 | while (!kthread_should_stop()) { | 744 | while (!kthread_should_stop()) { |
745 | preempt_disable(); | 745 | preempt_disable(); |
746 | if (!local_softirq_pending()) { | 746 | if (!local_softirq_pending()) { |
747 | preempt_enable_no_resched(); | 747 | schedule_preempt_disabled(); |
748 | schedule(); | ||
749 | preempt_disable(); | ||
750 | } | 748 | } |
751 | 749 | ||
752 | __set_current_state(TASK_RUNNING); | 750 | __set_current_state(TASK_RUNNING); |