Skip to content
Commit fad71d6d authored by Valentin Schneider's avatar Valentin Schneider
Browse files

sched: Fix PROXY_EXEC sched_class->update_curr()



The point with PROXY_EXEC is that any and all runtime accounting goes to
the proxy rather than the current.

scheduler_tick() already calls into sched_class->task_tick() with the proxy
as parameter; unfortunately, sched_class->update_curr() doesn't take a task
as parameter and is incorrectly using rq->curr.

Change that to rq->proxy.

Note that this doesn't impact CFS which was using

  update_curr(cfs_rq_of(&rq->curr->se))

which will be the same as

  update_curr(cfs_rq_of(&rq->proxy->se))

Signed-off-by: default avatarValentin Schneider <valentin.schneider@arm.com>
parent e68dbad8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment