Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <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

+5 -5
+3 -3
kernel/sched/fair.c
··· 9961 9961 sgs->sum_nr_running += nr_running; 9962 9962 9963 9963 if (nr_running > 1) 9964 - *sg_status |= SG_OVERLOAD; 9964 + *sg_status |= SG_OVERLOADED; 9965 9965 9966 9966 if (cpu_overutilized(i)) 9967 9967 *sg_status |= SG_OVERUTILIZED; ··· 9986 9986 /* Check for a misfit task on the cpu */ 9987 9987 if (sgs->group_misfit_task_load < rq->misfit_task_load) { 9988 9988 sgs->group_misfit_task_load = rq->misfit_task_load; 9989 - *sg_status |= SG_OVERLOAD; 9989 + *sg_status |= SG_OVERLOADED; 9990 9990 } 9991 9991 } else if (env->idle && sched_reduced_capacity(rq, env->sd)) { 9992 9992 /* Check for a task running on a CPU with reduced capacity */ ··· 10657 10657 10658 10658 if (!env->sd->parent) { 10659 10659 /* 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); 10661 10661 10662 10662 /* Update over-utilization (tipping point, U >= 0) indicator */ 10663 10663 set_rd_overutilized_status(env->dst_rq->rd,
+2 -2
kernel/sched/sched.h
··· 851 851 }; 852 852 853 853 /* 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. */ 855 855 #define SG_OVERUTILIZED 0x2 /* One or more CPUs are over-utilized. */ 856 856 857 857 /* ··· 2541 2541 2542 2542 #ifdef CONFIG_SMP 2543 2543 if (prev_nr < 2 && rq->nr_running >= 2) { 2544 - set_rd_overloaded(rq->rd, SG_OVERLOAD); 2544 + set_rd_overloaded(rq->rd, SG_OVERLOADED); 2545 2545 } 2546 2546 #endif 2547 2547