From: Yiwei Lin <s921975628@gmail.com>
To: mingo@redhat.com, peterz@infradead.org
Cc: vincent.guittot@linaro.org, dietmar.eggemann@arm.com,
linux-kernel@vger.kernel.org, s921975628@gmail.com
Subject: [PATCH] sched: Remove nr_spread_over for sched debug
Date: Sat, 4 Nov 2023 17:12:30 +0800 [thread overview]
Message-ID: <20231104091230.128516-1-s921975628@gmail.com> (raw)
As the statistic for nr_spread_over isn't tracked in scheduler
anymore after the EEVDF changes, we should just remove it.
Signed-off-by: Yiwei Lin <s921975628@gmail.com>
---
kernel/sched/debug.c | 2 --
kernel/sched/sched.h | 4 ----
2 files changed, 6 deletions(-)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index 4580a4507..b5157db38 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -663,8 +663,6 @@ void print_cfs_rq(struct seq_file *m, int cpu, struct cfs_rq *cfs_rq)
SPLIT_NS(right_vruntime));
spread = right_vruntime - left_vruntime;
SEQ_printf(m, " .%-30s: %Ld.%06ld\n", "spread", SPLIT_NS(spread));
- SEQ_printf(m, " .%-30s: %d\n", "nr_spread_over",
- cfs_rq->nr_spread_over);
SEQ_printf(m, " .%-30s: %d\n", "nr_running", cfs_rq->nr_running);
SEQ_printf(m, " .%-30s: %d\n", "h_nr_running", cfs_rq->h_nr_running);
SEQ_printf(m, " .%-30s: %d\n", "idle_nr_running",
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index 2e5a95486..5b5839c34 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -562,10 +562,6 @@ struct cfs_rq {
struct sched_entity *curr;
struct sched_entity *next;
-#ifdef CONFIG_SCHED_DEBUG
- unsigned int nr_spread_over;
-#endif
-
#ifdef CONFIG_SMP
/*
* CFS load tracking
--
2.34.1
reply other threads:[~2023-11-04 9:12 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=20231104091230.128516-1-s921975628@gmail.com \
--to=s921975628@gmail.com \
--cc=dietmar.eggemann@arm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=vincent.guittot@linaro.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®