Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7a941268 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched: window-stats: Fix overflow bug"

parents 70b9d27d 1b012750
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1457,7 +1457,8 @@ void update_task_ravg(struct task_struct *p, struct rq *rq, int update_sum)
			if (!update_sum)
				p->ravg.window_start = wallclock;
			else
				p->ravg.window_start += n * window_size;
				p->ravg.window_start += (u64)n *
							 (u64)window_size;
			BUG_ON(p->ravg.window_start > wallclock);
			if (update_sum)
				update_history(rq, p, window_size, n);