|
|
@@ -7001,15 +7001,15 @@ static void switched_from_fair(struct rq *rq, struct task_struct *p)
|
|
|
struct cfs_rq *cfs_rq = cfs_rq_of(se);
|
|
|
|
|
|
/*
|
|
|
- * Ensure the task's vruntime is normalized, so that when its
|
|
|
+ * Ensure the task's vruntime is normalized, so that when it's
|
|
|
* switched back to the fair class the enqueue_entity(.flags=0) will
|
|
|
* do the right thing.
|
|
|
*
|
|
|
- * If it was on_rq, then the dequeue_entity(.flags=0) will already
|
|
|
- * have normalized the vruntime, if it was !on_rq, then only when
|
|
|
+ * If it's on_rq, then the dequeue_entity(.flags=0) will already
|
|
|
+ * have normalized the vruntime, if it's !on_rq, then only when
|
|
|
* the task is sleeping will it still have non-normalized vruntime.
|
|
|
*/
|
|
|
- if (!se->on_rq && p->state != TASK_RUNNING) {
|
|
|
+ if (!p->on_rq && p->state != TASK_RUNNING) {
|
|
|
/*
|
|
|
* Fix up our vruntime so that the current sleep doesn't
|
|
|
* cause 'unlimited' sleep bonus.
|