]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched/fair: Fix math notation errors in avg_vruntime comment
authorZhan Xusheng <zhanxusheng1024@gmail.com>
Wed, 14 Jan 2026 09:00:35 +0000 (17:00 +0800)
committerPeter Zijlstra <peterz@infradead.org>
Thu, 15 Jan 2026 21:41:26 +0000 (22:41 +0100)
commit553255cc857c08d72658b57d01c04f76cde9a83a
tree83dac19b1ffe61a7327ccc87339d69ae254706f1
parent8d737320166bd145af70a3133a9964b00ca81cba
sched/fair: Fix math notation errors in avg_vruntime comment

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>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20260114090035.19033-1-zhanxusheng@xiaomi.com
kernel/sched/fair.c