sched/core: Remove duplicate assignment in sched_tick_remote()
authorScott Wood <swood@redhat.com>
Tue, 4 Feb 2020 00:35:58 +0000 (19:35 -0500)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 Feb 2020 20:03:13 +0000 (21:03 +0100)
A redundant "curr = rq->curr" was added; remove it.

Fixes: ebc0f83c78a2 ("timers/nohz: Update NOHZ load in remote tick")
Signed-off-by: Scott Wood <swood@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/1580776558-12882-1-git-send-email-swood@redhat.com
kernel/sched/core.c

index 45f79bc..377ec26 100644 (file)
@@ -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)) {