lkml.org 
[lkml]   [2020]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched/core: sched_tick_remote: Remove duplicate assignment
Hi Scott,

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")
> Signed-off-by: Scott Wood <swood@redhat.com>
> ---
> kernel/sched/core.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/sched/core.c b/kernel/sched/core.c
> index 45f79bcc3146..377ec26e9159 100644
> --- a/kernel/sched/core.c
> +++ b/kernel/sched/core.c
> @@ -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)) {
> --
> 1.8.3.1
>

Reviewed-by: Phil Auld <pauld@redhat.com>

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


Cheers,
Phil

--

\
 
 \ /
  Last update: 2020-02-04 15:28    [W:0.102 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site