[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20231104091230.128516-1-s921975628@gmail.com>
Date: Sat, 4 Nov 2023 17:12:30 +0800
From: Yiwei Lin <s921975628@...il.com>
To: mingo@...hat.com, peterz@...radead.org
Cc: vincent.guittot@...aro.org, dietmar.eggemann@....com,
linux-kernel@...r.kernel.org, s921975628@...il.com
Subject: [PATCH] sched: Remove nr_spread_over for sched debug
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@...il.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
Powered by blists - more mailing lists