projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0a79f5
)
sched: Fix signedness bug in yield_to()
author
Dan Carpenter
<
[email protected]
>
Tue, 5 Feb 2013 11:37:51 +0000
(14:37 +0300)
committer
Ingo Molnar
<
[email protected]
>
Tue, 5 Feb 2013 11:59:29 +0000
(12:59 +0100)
In
7b270f6099
"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: Dan Carpenter <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc:
[email protected]
Cc: Steven Rostedt <
[email protected]
>
Cc: Mike Galbraith <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/sched/core.c
patch
|
blob
|
history
diff --git
a/kernel/sched/core.c
b/kernel/sched/core.c
index 26058d0bebba1ca927c4df3e993190d5415f006c..c5b089df7ea8a7961af7f0fab2df8a65011442bf 100644
(file)
--- a/
kernel/sched/core.c
+++ b/
kernel/sched/core.c
@@
-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;
local_irq_save(flags);
rq = this_rq();