Skip to content

Commit

Permalink
sched/fair: Fix ascii art by relpacing tabs
Browse files Browse the repository at this point in the history
[ Upstream commit 08f7c2f ]

When using something other than 8 spaces per tab, this ascii art
makes not sense, and the reader might end up wondering what this
advanced equation "is".

Signed-off-by: Odin Ugedal <odin@uged.al>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210518125202.78658-4-odin@uged.al
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
odinuge authored and gregkh committed Jul 14, 2021
1 parent b2e7f2f commit 0221e85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel/sched/fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -3139,7 +3139,7 @@ void reweight_task(struct task_struct *p, int prio)
*
* tg->weight * grq->load.weight
* ge->load.weight = ----------------------------- (1)
* \Sum grq->load.weight
* \Sum grq->load.weight
*
* Now, because computing that sum is prohibitively expensive to compute (been
* there, done that) we approximate it with this average stuff. The average
Expand All @@ -3153,7 +3153,7 @@ void reweight_task(struct task_struct *p, int prio)
*
* tg->weight * grq->avg.load_avg
* ge->load.weight = ------------------------------ (3)
* tg->load_avg
* tg->load_avg
*
* Where: tg->load_avg ~= \Sum grq->avg.load_avg
*
Expand All @@ -3169,7 +3169,7 @@ void reweight_task(struct task_struct *p, int prio)
*
* tg->weight * grq->load.weight
* ge->load.weight = ----------------------------- = tg->weight (4)
* grp->load.weight
* grp->load.weight
*
* That is, the sum collapses because all other CPUs are idle; the UP scenario.
*
Expand All @@ -3188,7 +3188,7 @@ void reweight_task(struct task_struct *p, int prio)
*
* tg->weight * grq->load.weight
* ge->load.weight = ----------------------------- (6)
* tg_load_avg'
* tg_load_avg'
*
* Where:
*
Expand Down

0 comments on commit 0221e85

Please sign in to comment.