diff options
Diffstat (limited to 'kernel/sched')
-rw-r--r-- | kernel/sched/fair.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index f76ca21711bb..1c8762a5370c 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c | |||
@@ -2319,12 +2319,14 @@ void unthrottle_cfs_rq(struct cfs_rq *cfs_rq) | |||
2319 | se = cfs_rq->tg->se[cpu_of(rq_of(cfs_rq))]; | 2319 | se = cfs_rq->tg->se[cpu_of(rq_of(cfs_rq))]; |
2320 | 2320 | ||
2321 | cfs_rq->throttled = 0; | 2321 | cfs_rq->throttled = 0; |
2322 | |||
2323 | update_rq_clock(rq); | ||
2324 | |||
2322 | raw_spin_lock(&cfs_b->lock); | 2325 | raw_spin_lock(&cfs_b->lock); |
2323 | cfs_b->throttled_time += rq->clock - cfs_rq->throttled_clock; | 2326 | cfs_b->throttled_time += rq->clock - cfs_rq->throttled_clock; |
2324 | list_del_rcu(&cfs_rq->throttled_list); | 2327 | list_del_rcu(&cfs_rq->throttled_list); |
2325 | raw_spin_unlock(&cfs_b->lock); | 2328 | raw_spin_unlock(&cfs_b->lock); |
2326 | 2329 | ||
2327 | update_rq_clock(rq); | ||
2328 | /* update hierarchical throttle state */ | 2330 | /* update hierarchical throttle state */ |
2329 | walk_tg_tree_from(cfs_rq->tg, tg_nop, tg_unthrottle_up, (void *)rq); | 2331 | walk_tg_tree_from(cfs_rq->tg, tg_nop, tg_unthrottle_up, (void *)rq); |
2330 | 2332 | ||