sched/loadavg: fix comment for avenrun calculation
PATCH 1/1 sched/loadavg: fix comment for avenrun calculation
The comment in loadavg.c incorrectly states that each avenrun[n] value is calculated based on avenrun[0], but the code updates each avenrun[n] independently. This patch fixes the comment to reflect the actual logic.
Signed-off-by JaeYoon Lee <[email protected]>
--- kernel/sched/loadavg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/loadavg.c +1 -1
@@ -22,7 +22,7 @@* for_each_possible_cpu(cpu) * nr_active += cpu_of(cpu)->nr_running + cpu_of(cpu)->nr_uninterruptible; * -* avenrun[n] = avenrun[0] * exp_n + nr_active * (1 - exp_n) +* avenrun[n] = avenrun[n] * exp_n + nr_active * (1 - exp_n) * * Due to a number of reasons the above turns in the mess below: *
Signature · 1 line
2.29.2