sched/fair: Rework sched_use_asym_prio() and sched_asym_prefer()
authorAlex Shi <alexs@kernel.org>
Sat, 10 Feb 2024 11:39:21 +0000 (19:39 +0800)
committerIngo Molnar <mingo@kernel.org>
Wed, 28 Feb 2024 14:43:17 +0000 (15:43 +0100)
commit45de20623475049c424bc0b89f42efca54995edd
treed27b3c2b080f7a5fa10e5548c452616afae187d4
parent5a64983731566f3b102b4ed12445b8a1b2f46a46
sched/fair: Rework sched_use_asym_prio() and sched_asym_prefer()

sched_use_asym_prio() and sched_asym_prefer() are used together in various
places. Consolidate them into a single function sched_asym().

The existing sched_asym() function is only used when collecting statistics
of a scheduling group. Rename it as sched_group_asym(), and remove the
obsolete function description.

This makes the code easier to read. No functional changes.

Signed-off-by: Alex Shi <alexs@kernel.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Reviewed-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lore.kernel.org/r/20240210113924.1130448-3-alexs@kernel.org
kernel/sched/fair.c