Skip to contentSkip to conversation

sched/pelt: fix code alignment problem

PATCH New Yinan Liu 1 participant 1 message Dec 1, 2021 Scheduler

lore
Share & tools
lore

Yinan Liu

author
#0 lore raw

PATCH 1/1 sched/pelt: fix code alignment problem

runnable_load_avg is no more used and it is removed by this patch. It makes extra spaces appear in the code.

before

	shares   = calc_group_shares(gcfs_rq);
	runnable = calc_group_runnable(gcfs_rq, shares);

current

	shares   = calc_group_shares(gcfs_rq);

The original three spaces were meant to be aligned, but it doesn't make sense now.

---
 kernel/sched/fair.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/fair.c +1 -1
index 44c452072a1b..a344117d5aaf 100644
@@ -3219,7 +3219,7 @@ static void update_cfs_group(struct sched_entity *se)
 	if (likely(se->load.weight == shares))
 		return;
 #else
-	shares   = calc_group_shares(gcfs_rq);
+	shares = calc_group_shares(gcfs_rq);
 #endif
 
 	reweight_entity(cfs_rq_of(se), se, shares);
Signature · 1 line
2.19.1.6.gb485710b