Commit dfb83ef7 authored by Ingo Molnar's avatar Ingo Molnar

sched/fair: Rename root_domain::overload to ::overloaded

It is silly to use an ambiguous noun instead of a clear adjective when naming
such a flag ...

Note how root_domain::overutilized already used a proper adjective.

rd->overloaded is now set to 1 when the root domain is overloaded.
Signed-off-by: default avatarIngo 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
parent caac6291
...@@ -874,7 +874,7 @@ struct root_domain { ...@@ -874,7 +874,7 @@ struct root_domain {
* - More than one runnable task * - More than one runnable task
* - Running task is misfit * - Running task is misfit
*/ */
int overload; int overloaded;
/* Indicate one or more cpus over-utilized (tipping point) */ /* Indicate one or more cpus over-utilized (tipping point) */
int overutilized; int overutilized;
...@@ -932,13 +932,13 @@ extern void sched_put_rd(struct root_domain *rd); ...@@ -932,13 +932,13 @@ extern void sched_put_rd(struct root_domain *rd);
static inline int get_rd_overload(struct root_domain *rd) static inline int get_rd_overload(struct root_domain *rd)
{ {
return READ_ONCE(rd->overload); return READ_ONCE(rd->overloaded);
} }
static inline void set_rd_overload(struct root_domain *rd, int status) static inline void set_rd_overload(struct root_domain *rd, int status)
{ {
if (get_rd_overload(rd) != status) if (get_rd_overload(rd) != status)
WRITE_ONCE(rd->overload, status); WRITE_ONCE(rd->overloaded, status);
} }
#ifdef HAVE_RT_PUSH_IPI #ifdef HAVE_RT_PUSH_IPI
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment