Skip to content

Commit 7bda10b

Browse files
author
Ingo Molnar
committed
sched/fair: Rename SG_OVERLOAD to SG_OVERLOADED
Follow the rename of the root_domain::overloaded flag. Note that this also matches the SG_OVERUTILIZED flag better. 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 76cc4f9 commit 7bda10b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

kernel/sched/fair.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9961,7 +9961,7 @@ static inline void update_sg_lb_stats(struct lb_env *env,
99619961
sgs->sum_nr_running += nr_running;
99629962

99639963
if (nr_running > 1)
9964-
*sg_status |= SG_OVERLOAD;
9964+
*sg_status |= SG_OVERLOADED;
99659965

99669966
if (cpu_overutilized(i))
99679967
*sg_status |= SG_OVERUTILIZED;
@@ -9986,7 +9986,7 @@ static inline void update_sg_lb_stats(struct lb_env *env,
99869986
/* Check for a misfit task on the cpu */
99879987
if (sgs->group_misfit_task_load < rq->misfit_task_load) {
99889988
sgs->group_misfit_task_load = rq->misfit_task_load;
9989-
*sg_status |= SG_OVERLOAD;
9989+
*sg_status |= SG_OVERLOADED;
99909990
}
99919991
} else if (env->idle && sched_reduced_capacity(rq, env->sd)) {
99929992
/* Check for a task running on a CPU with reduced capacity */
@@ -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_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOAD);
10660+
set_rd_overloaded(env->dst_rq->rd, sg_status & SG_OVERLOADED);
1066110661

1066210662
/* Update over-utilization (tipping point, U >= 0) indicator */
1066310663
set_rd_overutilized_status(env->dst_rq->rd,

kernel/sched/sched.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ struct perf_domain {
851851
};
852852

853853
/* Scheduling group status flags */
854-
#define SG_OVERLOAD 0x1 /* More than one runnable task on a CPU. */
854+
#define SG_OVERLOADED 0x1 /* More than one runnable task on a CPU. */
855855
#define SG_OVERUTILIZED 0x2 /* One or more CPUs are over-utilized. */
856856

857857
/*
@@ -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_overloaded(rq->rd, SG_OVERLOAD);
2544+
set_rd_overloaded(rq->rd, SG_OVERLOADED);
25452545
}
25462546
#endif
25472547

0 commit comments

Comments
 (0)