sched/balancing: Rename find_busiest_group() => sched_balance_find_src_group()
authorIngo Molnar <mingo@kernel.org>
Fri, 8 Mar 2024 11:18:14 +0000 (12:18 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 12 Mar 2024 11:00:00 +0000 (12:00 +0100)
commit82cf921432fc184adbbb9c1bced182564876ec5e
tree2aec44f8f0f4a8e391bc1cad69cc82c35ec44c9c
parentf1cd2e2e79d283e315356bd403c7f928e994f057
sched/balancing: Rename find_busiest_group() => sched_balance_find_src_group()

Make two naming changes:

1)
   Standardize scheduler load-balancing function names on the
   sched_balance_() prefix.

2)

   Similar to find_busiest_queue(), the find_busiest_group() naming
   has become a bit of a misnomer: the 'busiest' qualifier to this
   function was historically correct but in the current code
   in quite a few cases we will not pick the 'busiest' group - but the best
   (possible) group we can balance from based on a complex set of
   constraints.

So name it a bit more neutrally, similar to the 'src/dst' nomenclature
we are already using when moving tasks between runqueues, and also
use the sched_balance_ prefix: sched_balance_find_src_group().

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Shrikanth Hegde <sshegde@linux.ibm.com>
Link: https://lore.kernel.org/r/20240308111819.1101550-9-mingo@kernel.org
kernel/sched/fair.c