Re: [PATCH] sched/pelt: Fix truncation of the PELT period count

From: Hui Su

Date: Thu Oct 22 2026 - 06:31:26 EST


On Thu, Oct 22, 2026, Vincent Guittot wrote:

> Did you face this problem, or did you find it only during a code review?

I found it during code review, not from a production failure.

I reproduced it with a KUnit test that advances PELT by exactly 2^32 periods.
Before the fix, util_avg remained 43 instead of 1024; after the fix, the test
passed. A standalone harness confirmed the same result.

Thanks for the review.

Thanks,
Hui