Re: [PATCH] sched: update cpupri for runqueue when its priority changes

From: Hillf Danton
Date: Fri Jun 17 2011 - 09:00:10 EST

On Fri, Jun 17, 2011 at 9:50 AM, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> On Sun, 2011-06-05 at 17:54 +0800, Hillf Danton wrote:
>> When the priority of runqueue changes, lower or higer, the info of cpupri
>> should be updated, in cases such as pick_next_task_rt() and switched_to_rt().
> Why?
> We do the calculation on queuing and dequeuing the task, we only care
> about the highest priority task that is on the queue, not what is
> actually running.

It is to capture the changes in CPU priority caused by re-queued task and
throttled RQ.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at