[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20260114111954.GA830755@noisy.programming.kicks-ass.net>
Date: Wed, 14 Jan 2026 12:19:54 +0100
From: Peter Zijlstra <peterz@...radead.org>
To: Zhan Xusheng <zhanxusheng1024@...il.com>
Cc: Ingo Molnar <mingo@...nel.org>, linux-sched@...r.kernel.org,
linux-kernel@...r.kernel.org, Zhan Xusheng <zhanxusheng@...omi.com>
Subject: Re: [PATCH] sched/fair: Fix math notation errors in avg_vruntime
comment
On Wed, Jan 14, 2026 at 05:00:35PM +0800, Zhan Xusheng wrote:
> The avg_vruntime comment contains a couple of mathematical notation
> issues:
>
> - The summation over w_i * (V - v_i) is written in an ambiguous form
> - The delta term refers to v instead of v0, which is inconsistent
> with the code and preceding explanation
>
> Fix these to make the comment mathematically correct and consistent
> with the implementation.
>
> Signed-off-by: Zhan Xusheng <zhanxusheng@...omi.com>
Fair enough. Thanks!
Powered by blists - more mailing lists