Commit c3c18640 authored by Dan Carpenter's avatar Dan Carpenter Committed by Ingo Molnar
Browse files

sched: Fix signedness bug in yield_to()

In 7b270f60

 "sched: Bail out of yield_to when source and
target runqueue has one task" we changed this to store -ESRCH so
it needs to be signed.
Signed-off-by: default avatarDan Carpenter <>
Cc: Peter Zijlstra <>
Cc: Steven Rostedt <>
Cc: Mike Galbraith <>

Signed-off-by: default avatarIngo Molnar <>
parent e0a79f52
......@@ -4371,7 +4371,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt)
struct task_struct *curr = current;
struct rq *rq, *p_rq;
unsigned long flags;
bool yielded = 0;
int yielded = 0;
rq = this_rq();
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