File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -3688,7 +3688,7 @@ static inline struct cfs_bandwidth *tg_cfs_bandwidth(struct task_group *tg)
36883688static inline u64 cfs_rq_clock_task (struct cfs_rq * cfs_rq )
36893689{
36903690 if (unlikely (cfs_rq -> throttle_count ))
3691- return cfs_rq -> throttled_clock_task ;
3691+ return cfs_rq -> throttled_clock_task - cfs_rq -> throttled_clock_task_time ;
36923692
36933693 return rq_clock_task (rq_of (cfs_rq )) - cfs_rq -> throttled_clock_task_time ;
36943694}
@@ -3826,13 +3826,11 @@ static int tg_unthrottle_up(struct task_group *tg, void *data)
38263826 struct cfs_rq * cfs_rq = tg -> cfs_rq [cpu_of (rq )];
38273827
38283828 cfs_rq -> throttle_count -- ;
3829- #ifdef CONFIG_SMP
38303829 if (!cfs_rq -> throttle_count ) {
38313830 /* adjust cfs_rq_clock_task() */
38323831 cfs_rq -> throttled_clock_task_time += rq_clock_task (rq ) -
38333832 cfs_rq -> throttled_clock_task ;
38343833 }
3835- #endif
38363834
38373835 return 0 ;
38383836}
You can’t perform that action at this time.
0 commit comments