Re: [PATCH] sched: resched proper CPU on yield_to

From: Rik van Riel
Date: Tue Mar 01 2011 - 22:52:52 EST


On 03/01/2011 07:28 PM, Venkatesh Pallipadi wrote:
yield_to_task_fair() has code to resched the CPU of yielding task when the
intention is to resched the CPU of the task that is being yielded to.

Change here fixes the problem and also makes the resched conditional on
rq != p_rq.

I don't have a setup to test this code path. So, this is only compile tested
right now.

Signed-off-by: Venkatesh Pallipadi<venki@xxxxxxxxxx>

Never mind what I wrote before. Your patch is correct.
(and I am way tired)

Reviewed-by: Rik van Riel <riel@xxxxxxxxxx>

--
All rights reversed
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/