Skip to content

Commit 5a64983

Browse files
Alex ShiIngo Molnar
authored andcommitted
sched/fair: Remove unused parameter from sched_asym()
The 'sds' argument is not used in the sched_asym() function anymore, remove it. Fixes: c9ca078 ("sched/fair: Do not even the number of busy CPUs via asym_packing") Signed-off-by: Alex Shi <alexs@kernel.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Reviewed-by: Ricardo Neri <ricardo.neri-calderon@linux.intel.com> Reviewed-by: Valentin Schneider <vschneid@redhat.com> Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org> Link: https://lore.kernel.org/r/20240210113924.1130448-2-alexs@kernel.org
1 parent d654c8d commit 5a64983

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

kernel/sched/fair.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9753,7 +9753,6 @@ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu)
97539753
/**
97549754
* sched_asym - Check if the destination CPU can do asym_packing load balance
97559755
* @env: The load balancing environment
9756-
* @sds: Load-balancing data with statistics of the local group
97579756
* @sgs: Load-balancing statistics of the candidate busiest group
97589757
* @group: The candidate busiest group
97599758
*
@@ -9772,8 +9771,7 @@ static bool sched_use_asym_prio(struct sched_domain *sd, int cpu)
97729771
* otherwise.
97739772
*/
97749773
static inline bool
9775-
sched_asym(struct lb_env *env, struct sd_lb_stats *sds, struct sg_lb_stats *sgs,
9776-
struct sched_group *group)
9774+
sched_asym(struct lb_env *env, struct sg_lb_stats *sgs, struct sched_group *group)
97779775
{
97789776
/* Ensure that the whole local core is idle, if applicable. */
97799777
if (!sched_use_asym_prio(env->sd, env->dst_cpu))
@@ -9944,7 +9942,7 @@ static inline void update_sg_lb_stats(struct lb_env *env,
99449942
/* Check if dst CPU is idle and preferred to this group */
99459943
if (!local_group && env->sd->flags & SD_ASYM_PACKING &&
99469944
env->idle != CPU_NOT_IDLE && sgs->sum_h_nr_running &&
9947-
sched_asym(env, sds, sgs, group)) {
9945+
sched_asym(env, sgs, group)) {
99489946
sgs->group_asym_packing = 1;
99499947
}
99509948

0 commit comments

Comments
 (0)