Skip to contentSkip to conversation

sched: remove the redundant comments

PATCH In review Hui Su 3 participants 4 messages Apr 12, 2021 – Apr 13, 2021 Scheduler

lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 sched: remove the redundant comments

Since the commit 55627e3cd22c ("sched/core: Remove rq->cpu_load[]"), we don't need this any more.

---
 kernel/sched/sched.h | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/sched.h +0 -5
index 10a1522b1e30..2232022d8561 100644
@@ -897,11 +897,6 @@ DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 struct rq {
 	/* runqueue lock: */
 	raw_spinlock_t		lock;
-
-	/*
-	 * nr_running and cpu_load should be in the same cacheline because
-	 * remote CPUs use both these fields when doing load calculation.
-	 */
 	unsigned int		nr_running;
 #ifdef CONFIG_NUMA_BALANCING
 	unsigned int		nr_numa_running;
Signature · 1 line
2.25.1
reviewer Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Hui Su

Since the commit 55627e3cd22c ("sched/core: Remove rq->cpu_load[]"), we don't need this any more.

---
 kernel/sched/sched.h | 5 -----
 1 file changed, 5 deletions(-)
kernel/sched/sched.h +0 -0
index 10a1522b1e30..2232022d8561 100644
@@ -897,11 +897,6 @@ DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 struct rq {

kernel/sched/sched.h DECLARE_STATIC_KEY_FALSE(sched_uclamp_used); · line 902

Quoted 10 lines
kernel/sched/sched.h +0 -5
 	/* runqueue lock: */
 	raw_spinlock_t		lock;
-
-	/*
-	 * nr_running and cpu_load should be in the same cacheline because
-	 * remote CPUs use both these fields when doing load calculation.
-	 */
 	unsigned int		nr_running;
 #ifdef CONFIG_NUMA_BALANCING
 	unsigned int		nr_numa_running;

I forgot to remove this snippet back then. LGTM.

Add a

Fixes 55627e3cd22c ("sched/core: Remove rq->cpu_load[]")

line.

#2 lore raw
Quoted 15 lines · On Tue, 13 Apr 2021 10:36:07 +0200 Dietmar Eggemann <[email protected]>…

kernel/sched/sched.h DECLARE_STATIC_KEY_FALSE(sched_uclamp_used); · line 902

Quoted 12 lines
kernel/sched/sched.h +0 -5
@@ -897,11 +897,6 @@ DECLARE_STATIC_KEY_FALSE(sched_uclamp_used);
 struct rq {
 	/* runqueue lock: */
 	raw_spinlock_t		lock;
-
-	/*
-	 * nr_running and cpu_load should be in the same cacheline because
-	 * remote CPUs use both these fields when doing load calculation.
-	 */
 	unsigned int		nr_running;
 #ifdef CONFIG_NUMA_BALANCING
 	unsigned int		nr_numa_running;  

I forgot to remove this snippet back then. LGTM.

Quoted 5 lines

Add a

Fixes 55627e3cd22c ("sched/core: Remove rq->cpu_load[]")

line.

It's just removing a comment. Should it really need a "Fixes" tag, which will cause many people to look at it to determine if it should be backported to stable?

-- Steve

#3 lore raw
Quoted 2 lines · Steven Rostedt

On Tue, 13 Apr 2021 10:36:07 +0200
Dietmar Eggemann <[email protected]> wrote:

[...]

Quoted 9 lines
Quoted 5 lines

Add a

Fixes 55627e3cd22c ("sched/core: Remove rq->cpu_load[]")

line.

It's just removing a comment. Should it really need a "Fixes" tag, which will cause many people to look at it to determine if it should be backported to stable?

I see, in this case let's skip it.