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 {set|get}_rd_overload() to {set|get}_rd_overloaded()

Follow the rename of the root_domain::overloaded flag.

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

+6 -6
+2 -2
kernel/sched/fair.c
··· 10657 10657 10658 10658 if (!env->sd->parent) { 10659 10659 /* 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); 10661 10661 10662 10662 /* Update over-utilization (tipping point, U >= 0) indicator */ 10663 10663 set_rd_overutilized_status(env->dst_rq->rd, ··· 12390 12390 rcu_read_lock(); 12391 12391 sd = rcu_dereference_check_sched_domain(this_rq->sd); 12392 12392 12393 - if (!get_rd_overload(this_rq->rd) || 12393 + if (!get_rd_overloaded(this_rq->rd) || 12394 12394 (sd && this_rq->avg_idle < sd->max_newidle_lb_cost)) { 12395 12395 12396 12396 if (sd)
+4 -4
kernel/sched/sched.h
··· 930 930 extern void sched_get_rd(struct root_domain *rd); 931 931 extern void sched_put_rd(struct root_domain *rd); 932 932 933 - static inline int get_rd_overload(struct root_domain *rd) 933 + static inline int get_rd_overloaded(struct root_domain *rd) 934 934 { 935 935 return READ_ONCE(rd->overloaded); 936 936 } 937 937 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) 939 939 { 940 - if (get_rd_overload(rd) != status) 940 + if (get_rd_overloaded(rd) != status) 941 941 WRITE_ONCE(rd->overloaded, status); 942 942 } 943 943 ··· 2541 2541 2542 2542 #ifdef CONFIG_SMP 2543 2543 if (prev_nr < 2 && rq->nr_running >= 2) { 2544 - set_rd_overload(rq->rd, SG_OVERLOAD); 2544 + set_rd_overloaded(rq->rd, SG_OVERLOAD); 2545 2545 } 2546 2546 #endif 2547 2547