]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
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)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 5 May 2020 10:32:22 +0000 (12:32 +0200)
BugLink: https://bugs.launchpad.net/bugs/1873481
commit 82e0516ce3a147365a5dd2a9bedd5ba43a18663d upstream.

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
Cc: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
kernel/sched/core.c

index 3f1890a4d67ab319eaf1bed304f91048e7d2a52f..c28dc641fe0d1a1102630743118fc93cd6c38a20 100644 (file)
@@ -3676,7 +3676,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)) {