sched/balancing: Fix a couple of outdated function names in comments
authorIngo Molnar <mingo@kernel.org>
Tue, 12 Mar 2024 10:33:50 +0000 (11:33 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 12 Mar 2024 11:00:01 +0000 (12:00 +0100)
The 'idle_balance()' function hasn't existed for years, and there's no
load_balance_newidle() either - both are sched_balance_newidle() today.

Reported-by: Honglei Wang <jameshongleiwang@126.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/ZfAwNufbiyt/5biu@gmail.com
kernel/sched/fair.c
kernel/sched/pelt.c

index 4b3c4a181a914a159780dc3374cb19d38838e8f4..a19ea290b7906462f7434f175437b811b75b5bb9 100644 (file)
@@ -6866,7 +6866,7 @@ dequeue_throttle:
 
 #ifdef CONFIG_SMP
 
-/* Working cpumask for: sched_balance_rq, load_balance_newidle. */
+/* Working cpumask for: sched_balance_rq(), sched_balance_newidle(). */
 static DEFINE_PER_CPU(cpumask_var_t, load_balance_mask);
 static DEFINE_PER_CPU(cpumask_var_t, select_rq_mask);
 static DEFINE_PER_CPU(cpumask_var_t, should_we_balance_tmpmask);
index f80955ecdce6946dce817394773b5d1e95178e5f..3a96da25b67c73a0cf60131ff21d77049e46e31a 100644 (file)
@@ -208,7 +208,7 @@ ___update_load_sum(u64 now, struct sched_avg *sa,
         * se has been already dequeued but cfs_rq->curr still points to it.
         * This means that weight will be 0 but not running for a sched_entity
         * but also for a cfs_rq if the latter becomes idle. As an example,
-        * this happens during idle_balance() which calls
+        * this happens during sched_balance_newidle() which calls
         * sched_balance_update_blocked_averages().
         *
         * Also see the comment in accumulate_sum().