Skip to content

Commit 76cc4f9

Browse files
author
Ingo Molnar
committed
sched/fair: Rename {set|get}_rd_overload() to {set|get}_rd_overloaded()
Follow the rename of the root_domain::overloaded flag. 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 dfb83ef commit 76cc4f9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

kernel/sched/fair.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10657,7 +10657,7 @@ static inline void update_sd_lb_stats(struct lb_env *env, struct sd_lb_stats *sd
1065710657

1065810658
if (!env->sd->parent) {
1065910659
/* update overload indicator if we are at root domain */
10660-
set_rd_overload(env->dst_rq->rd, sg_status & SG_OVERLOAD);
10660+
set_rd_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOAD);
1066110661

1066210662
/* Update over-utilization (tipping point, U >= 0) indicator */
1066310663
set_rd_overutilized_status(env->dst_rq->rd,
@@ -12390,7 +12390,7 @@ static int sched_balance_newidle(struct rq *this_rq, struct rq_flags *rf)
1239012390
rcu_read_lock();
1239112391
sd = rcu_dereference_check_sched_domain(this_rq->sd);
1239212392

12393-
if (!get_rd_overload(this_rq->rd) ||
12393+
if (!get_rd_overloaded(this_rq->rd) ||
1239412394
(sd && this_rq->avg_idle < sd->max_newidle_lb_cost)) {
1239512395

1239612396
if (sd)

kernel/sched/sched.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,14 +930,14 @@ extern void rq_attach_root(struct rq *rq, struct root_domain *rd);
930930
extern void sched_get_rd(struct root_domain *rd);
931931
extern void sched_put_rd(struct root_domain *rd);
932932

933-
static inline int get_rd_overload(struct root_domain *rd)
933+
static inline int get_rd_overloaded(struct root_domain *rd)
934934
{
935935
return READ_ONCE(rd->overloaded);
936936
}
937937

938-
static inline void set_rd_overload(struct root_domain *rd, int status)
938+
static inline void set_rd_overloaded(struct root_domain *rd, int status)
939939
{
940-
if (get_rd_overload(rd) != status)
940+
if (get_rd_overloaded(rd) != status)
941941
WRITE_ONCE(rd->overloaded, status);
942942
}
943943

@@ -2541,7 +2541,7 @@ static inline void add_nr_running(struct rq *rq, unsigned count)
25412541

25422542
#ifdef CONFIG_SMP
25432543
if (prev_nr < 2 && rq->nr_running >= 2) {
2544-
set_rd_overload(rq->rd, SG_OVERLOAD);
2544+
set_rd_overloaded(rq->rd, SG_OVERLOAD);
25452545
}
25462546
#endif
25472547

0 commit comments

Comments
 (0)