mirror of
https://github.com/torvalds/linux
synced 2024-09-06 18:01:05 +00:00
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 <mingo@kernel.org> Cc: Qais Yousef <qyousef@layalina.io> Cc: Shrikanth Hegde <sshegde@linux.ibm.com> Cc: Vincent Guittot <vincent.guittot@linaro.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: https://lore.kernel.org/r/ZgVHq65XKsOZpfgK@gmail.com
This commit is contained in:
parent
7bda10ba7f
commit
4d0a63e5b8
|
@ -6693,7 +6693,7 @@ static inline int is_rd_overutilized(struct root_domain *rd)
|
|||
return !sched_energy_enabled() || READ_ONCE(rd->overutilized);
|
||||
}
|
||||
|
||||
static inline void set_rd_overutilized_status(struct root_domain *rd,
|
||||
static inline void set_rd_overutilized(struct root_domain *rd,
|
||||
unsigned int status)
|
||||
{
|
||||
if (!sched_energy_enabled())
|
||||
|
@ -6711,7 +6711,7 @@ static inline void check_update_overutilized_status(struct rq *rq)
|
|||
*/
|
||||
|
||||
if (!is_rd_overutilized(rq->rd) && cpu_overutilized(rq->cpu))
|
||||
set_rd_overutilized_status(rq->rd, SG_OVERUTILIZED);
|
||||
set_rd_overutilized(rq->rd, SG_OVERUTILIZED);
|
||||
}
|
||||
#else
|
||||
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
|
|||
set_rd_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOADED);
|
||||
|
||||
/* Update over-utilization (tipping point, U >= 0) indicator */
|
||||
set_rd_overutilized_status(env->dst_rq->rd,
|
||||
set_rd_overutilized(env->dst_rq->rd,
|
||||
sg_status & SG_OVERUTILIZED);
|
||||
} else if (sg_status & SG_OVERUTILIZED) {
|
||||
set_rd_overutilized_status(env->dst_rq->rd, SG_OVERUTILIZED);
|
||||
set_rd_overutilized(env->dst_rq->rd, SG_OVERUTILIZED);
|
||||
}
|
||||
|
||||
update_idle_cpu_scan(env, sum_util);
|
||||
|
|
Loading…
Reference in a new issue