Commit 1b104df1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] sched: add missing local_irq_enable()

From: Nick Piggin <nickpiggin@yahoo.com.au>

this_rq_lock does a local_irq_disable, and sched_yield() needs to undo that.
parent f68e7a55
...@@ -2979,6 +2979,7 @@ asmlinkage long sys_sched_yield(void) ...@@ -2979,6 +2979,7 @@ asmlinkage long sys_sched_yield(void)
* no need to preempt: * no need to preempt:
*/ */
_raw_spin_unlock(&rq->lock); _raw_spin_unlock(&rq->lock);
local_irq_enable();
preempt_enable_no_resched(); preempt_enable_no_resched();
schedule(); schedule();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment