Skip to contentSkip to conversation

sched/core: sched_tick_remote: Remove duplicate assignment

PATCH Applied Scott Wood 3 participants 5 messages Feb 4, 2020 – Feb 20, 2020 Scheduler

lore
Share & tools
lore

Scott Wood

author
#0 lore raw

PATCH 1/1 sched/core: sched_tick_remote: Remove duplicate assignment

A redundant "curr = rq->curr" was added; remove it.

Fixes ebc0f83c78a2 ("timers/nohz: Update NOHZ load in remote tick")
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 45f79bcc3146..377ec26e9159 100644
@@ -3683,7 +3683,6 @@ static void sched_tick_remote(struct work_struct *work)
 	if (cpu_is_offline(cpu))
 		goto out_unlock;
 
-	curr = rq->curr;
 	update_rq_clock(rq);
 
 	if (!is_idle_task(curr)) {
Signature · 1 line
1.8.3.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Scott,

Quoted 23 lines · On Mon, Feb 03, 2020 at 07:35:58PM -0500 Scott Wood wrote:

A redundant "curr = rq->curr" was added; remove it.

Fixes ebc0f83c78a2 ("timers/nohz: Update NOHZ load in remote tick")
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 45f79bcc3146..377ec26e9159 100644
@@ -3683,7 +3683,6 @@ static void sched_tick_remote(struct work_struct *work)
 	if (cpu_is_offline(cpu))
 		goto out_unlock;
 
-	curr = rq->curr;
 	update_rq_clock(rq);
 
 	if (!is_idle_task(curr)) {
Signature · 1 line
1.8.3.1

Out of curiosity, why remove this one and not the one right before the cpu_is_offline check?

Cheers,
Phil

author
#2 lore raw
Quoted 30 lines · Phil Auld

Hi Scott,

Quoted 20 lines · On Mon, Feb 03, 2020 at 07:35:58PM -0500 Scott Wood wrote:

A redundant "curr = rq->curr" was added; remove it.

Fixes ebc0f83c78a2 ("timers/nohz: Update NOHZ load in remote tick")
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 45f79bcc3146..377ec26e9159 100644
@@ -3683,7 +3683,6 @@ static void sched_tick_remote(struct work_struct
 *work)
 	if (cpu_is_offline(cpu))
 		goto out_unlock;
 
-	curr = rq->curr;
 	update_rq_clock(rq);
 
Quoted 4 lines

if (!is_idle_task(curr)) {

Signature · 1 line
1.8.3.1
Quoted 2 lines

Out of curiosity, why remove this one and not the one right before the cpu_is_offline check?

This was the one that was recently added by mistake.

-Scott

merge bot Applied
#3 lore raw

[tip: sched/core] sched/core: Remove duplicate assignment in sched_tick_remote()

In reply to Scott Wood
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     4ccfaab0853bfea772558db6a5e289e87cba57ed
Gitweb:        https://git.kernel.org/tip/4ccfaab0853bfea772558db6a5e289e87cba57ed
Author:        Scott Wood <[email protected]>
AuthorDate:    Mon, 03 Feb 2020 19:35:58 -05:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Tue, 11 Feb 2020 12:59:22 +01:00

sched/core: Remove duplicate assignment in sched_tick_remote()

A redundant "curr = rq->curr" was added; remove it.

Fixes ebc0f83c78a2 ("timers/nohz: Update NOHZ load in remote tick")
---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 45f79bc..377ec26 100644
@@ -3683,7 +3683,6 @@ static void sched_tick_remote(struct work_struct *work)
 	if (cpu_is_offline(cpu))
 		goto out_unlock;
 
-	curr = rq->curr;
 	update_rq_clock(rq);
 
 	if (!is_idle_task(curr)) {
merge bot Applied
#4 lore raw

[tip: sched/core] sched/core: Remove duplicate assignment in sched_tick_remote()

In reply to Scott Wood
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     82e0516ce3a147365a5dd2a9bedd5ba43a18663d
Gitweb:        https://git.kernel.org/tip/82e0516ce3a147365a5dd2a9bedd5ba43a18663d
Author:        Scott Wood <[email protected]>
AuthorDate:    Mon, 03 Feb 2020 19:35:58 -05:00
Committer:     Thomas Gleixner <[email protected]>
CommitterDate: Thu, 20 Feb 2020 21:03:13 +01:00

sched/core: Remove duplicate assignment in sched_tick_remote()

A redundant "curr = rq->curr" was added; remove it.

---
 kernel/sched/core.c | 1 -
 1 file changed, 1 deletion(-)
kernel/sched/core.c +0 -1
index 45f79bc..377ec26 100644
@@ -3683,7 +3683,6 @@ static void sched_tick_remote(struct work_struct *work)
 	if (cpu_is_offline(cpu))
 		goto out_unlock;
 
-	curr = rq->curr;
 	update_rq_clock(rq);
 
 	if (!is_idle_task(curr)) {