diff options
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 799d23b4e35d..13cdab3b4c48 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -4775,9 +4775,7 @@ int __sched cond_resched_softirq(void) | |||
4775 | BUG_ON(!in_softirq()); | 4775 | BUG_ON(!in_softirq()); |
4776 | 4776 | ||
4777 | if (need_resched() && system_state == SYSTEM_RUNNING) { | 4777 | if (need_resched() && system_state == SYSTEM_RUNNING) { |
4778 | raw_local_irq_disable(); | 4778 | local_bh_enable(); |
4779 | _local_bh_enable(); | ||
4780 | raw_local_irq_enable(); | ||
4781 | __cond_resched(); | 4779 | __cond_resched(); |
4782 | local_bh_disable(); | 4780 | local_bh_disable(); |
4783 | return 1; | 4781 | return 1; |