Message ID | 20210824112946.9324-2-laoar.shao@gmail.com |
---|---|
State | Superseded |
Headers | show |
Series | sched: support schedstats for RT sched class | expand |
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c index 5aa3cfd15a2e..422426768b84 100644 --- a/kernel/sched/fair.c +++ b/kernel/sched/fair.c @@ -4502,7 +4502,7 @@ set_next_entity(struct cfs_rq *cfs_rq, struct sched_entity *se) */ if (schedstat_enabled() && rq_of(cfs_rq)->cfs.load.weight >= 2*se->load.weight) { - schedstat_set(se->statistics.slice_max, + __schedstat_set(se->statistics.slice_max, max((u64)schedstat_val(se->statistics.slice_max), se->sum_exec_runtime - se->prev_sum_exec_runtime)); }