summaryrefslogtreecommitdiff
path: root/kernel/sched/stop_task.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/sched/stop_task.c')
-rw-r--r--kernel/sched/stop_task.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/kernel/sched/stop_task.c b/kernel/sched/stop_task.c
index 93aba3060d9a..1918c46ccca9 100644
--- a/kernel/sched/stop_task.c
+++ b/kernel/sched/stop_task.c
@@ -35,7 +35,9 @@ static void
fixup_hmp_sched_stats_stop(struct rq *rq, struct task_struct *p,
u32 new_task_load)
{
- fixup_cumulative_runnable_avg(&rq->hmp_stats, p, new_task_load);
+ s64 task_load_delta = (s64)new_task_load - task_load(p);
+
+ fixup_cumulative_runnable_avg(&rq->hmp_stats, p, task_load_delta);
}
#else /* CONFIG_SCHED_HMP */