|
@@ -722,7 +722,7 @@ static void update_cfs_load(struct cfs_rq *cfs_rq, int global_update)
|
|
u64 now, delta;
|
|
u64 now, delta;
|
|
unsigned long load = cfs_rq->load.weight;
|
|
unsigned long load = cfs_rq->load.weight;
|
|
|
|
|
|
- if (!cfs_rq)
|
|
|
|
|
|
+ if (cfs_rq->tg == &root_task_group)
|
|
return;
|
|
return;
|
|
|
|
|
|
now = rq_of(cfs_rq)->clock;
|
|
now = rq_of(cfs_rq)->clock;
|
|
@@ -830,9 +830,6 @@ static void update_cfs_shares(struct cfs_rq *cfs_rq, long weight_delta)
|
|
struct sched_entity *se;
|
|
struct sched_entity *se;
|
|
long shares;
|
|
long shares;
|
|
|
|
|
|
- if (!cfs_rq)
|
|
|
|
- return;
|
|
|
|
-
|
|
|
|
tg = cfs_rq->tg;
|
|
tg = cfs_rq->tg;
|
|
se = tg->se[cpu_of(rq_of(cfs_rq))];
|
|
se = tg->se[cpu_of(rq_of(cfs_rq))];
|
|
if (!se)
|
|
if (!se)
|