From: Yinan Liu <yinan@linux.alibaba.com>
To: peterz@infradead.org
Cc: mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: [PATCH] sched/pelt: fix code alignment problem
Date: Wed, 1 Dec 2021 15:15:34 +0800 [thread overview]
Message-ID: <20211201071534.35488-1-yinan@linux.alibaba.com> (raw)
link:https://lore.kernel.org/lkml/20200219135442.18107-8-mgorman@techsingularity.net/
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.
Signed-off-by: Yinan Liu <yinan@linux.alibaba.com>
---
kernel/sched/fair.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
index 44c452072a1b..a344117d5aaf 100644
--- a/kernel/sched/fair.c
+++ b/kernel/sched/fair.c
@@ -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);
--
2.19.1.6.gb485710b
reply other threads:[~2021-12-01 7:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20211201071534.35488-1-yinan@linux.alibaba.com \
--to=yinan@linux.alibaba.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®