Skip to content

Commit dfb83ef

Browse files
author
Ingo Molnar
committed
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: 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 caac629 commit dfb83ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kernel/sched/sched.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ struct root_domain {
874874
* - More than one runnable task
875875
* - Running task is misfit
876876
*/
877-
int overload;
877+
int overloaded;
878878

879879
/* Indicate one or more cpus over-utilized (tipping point) */
880880
int overutilized;
@@ -932,13 +932,13 @@ extern void sched_put_rd(struct root_domain *rd);
932932

933933
static inline int get_rd_overload(struct root_domain *rd)
934934
{
935-
return READ_ONCE(rd->overload);
935+
return READ_ONCE(rd->overloaded);
936936
}
937937

938938
static inline void set_rd_overload(struct root_domain *rd, int status)
939939
{
940940
if (get_rd_overload(rd) != status)
941-
WRITE_ONCE(rd->overload, status);
941+
WRITE_ONCE(rd->overloaded, status);
942942
}
943943

944944
#ifdef HAVE_RT_PUSH_IPI

0 commit comments

Comments
 (0)