From: Peter Zijlstra <peterz@infradead.org>
To: Zhan Xusheng <zhanxusheng1024@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>,
linux-sched@vger.kernel.org, linux-kernel@vger.kernel.org,
Zhan Xusheng <zhanxusheng@xiaomi.com>
Subject: Re: [PATCH] sched/fair: Fix math notation errors in avg_vruntime comment
Date: Wed, 14 Jan 2026 12:19:54 +0100 [thread overview]
Message-ID: <20260114111954.GA830755@noisy.programming.kicks-ass.net> (raw)
In-Reply-To: <20260114090035.19033-1-zhanxusheng@xiaomi.com>
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@xiaomi.com>
Fair enough. Thanks!
next prev parent reply other threads:[~2026-01-14 11:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-14 9:00 Zhan Xusheng
2026-01-14 11:19 ` Peter Zijlstra [this message]
2026-01-15 21:44 ` [tip: sched/core] " tip-bot2 for Zhan Xusheng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260114111954.GA830755@noisy.programming.kicks-ass.net \
--to=peterz@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sched@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=zhanxusheng1024@gmail.com \
--cc=zhanxusheng@xiaomi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®