Skip to content

Commit 4d0a63e

Browse files
author
Ingo Molnar
committed
sched/fair: Rename set_rd_overutilized_status() to set_rd_overutilized()
The _status() postfix has no real meaning, simplify the naming and harmonize it with set_rd_overloaded(). Signed-off-by: Ingo Molnar <[email protected]> Cc: Qais Yousef <[email protected]> Cc: Shrikanth Hegde <[email protected]> Cc: Vincent Guittot <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7bda10b commit 4d0a63e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel/sched/fair.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6693,7 +6693,7 @@ static inline int is_rd_overutilized(struct root_domain *rd)
66936693
return !sched_energy_enabled() || READ_ONCE(rd->overutilized);
66946694
}
66956695

6696-
static inline void set_rd_overutilized_status(struct root_domain *rd,
6696+
static inline void set_rd_overutilized(struct root_domain *rd,
66976697
unsigned int status)
66986698
{
66996699
if (!sched_energy_enabled())
@@ -6711,7 +6711,7 @@ static inline void check_update_overutilized_status(struct rq *rq)
67116711
*/
67126712

67136713
if (!is_rd_overutilized(rq->rd) && cpu_overutilized(rq->cpu))
6714-
set_rd_overutilized_status(rq->rd, SG_OVERUTILIZED);
6714+
set_rd_overutilized(rq->rd, SG_OVERUTILIZED);
67156715
}
67166716
#else
67176717
static inline void check_update_overutilized_status(struct rq *rq) { }
@@ -10660,10 +10660,10 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd
1066010660
set_rd_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOADED);
1066110661

1066210662
/* Update over-utilization (tipping point, U >= 0) indicator */
10663-
set_rd_overutilized_status(env->dst_rq->rd,
10663+
set_rd_overutilized(env->dst_rq->rd,
1066410664
sg_status & SG_OVERUTILIZED);
1066510665
} else if (sg_status & SG_OVERUTILIZED) {
10666-
set_rd_overutilized_status(env->dst_rq->rd, SG_OVERUTILIZED);
10666+
set_rd_overutilized(env->dst_rq->rd, SG_OVERUTILIZED);
1066710667
}
1066810668

1066910669
update_idle_cpu_scan(env, sum_util);

0 commit comments

Comments
 (0)