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

Rik van Riel
2011-03-02T03:52:35Z

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@google.com>

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

Reviewed-by: Rik van Riel <riel@redhat.com>

--
All rights reversed