All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] sched: signedness bug in yield_to()
@ 2013-02-05 11:37 ` Dan Carpenter
  0 siblings, 0 replies; 10+ messages in thread
From: Dan Carpenter @ 2013-02-05 11:37 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, linux-kernel, kernel-janitors, kbuild

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 <dan.carpenter@oracle.com>

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3e7b280..7ba7ea5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4384,7 +4384,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();

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-06-05 14:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 11:37 [patch] sched: signedness bug in yield_to() Dan Carpenter
2013-02-05 11:37 ` Dan Carpenter
2013-02-05 15:23 ` [tip:sched/core] sched: Fix " tip-bot for Dan Carpenter
2014-05-23 10:20 ` [patch] sched: " Dan Carpenter
2014-05-23 10:20   ` Dan Carpenter
2014-05-23 10:46   ` Peter Zijlstra
2014-05-23 10:46     ` Peter Zijlstra
2014-05-23 13:40   ` Raghavendra KT
2014-05-23 13:52     ` Raghavendra KT
2014-06-05 14:34   ` [tip:sched/core] sched: Fix " tip-bot for Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.