[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YJvtVD/SotLoZU/U@hirez.programming.kicks-ass.net>
Date: Wed, 12 May 2021 16:59:32 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Thomas Gleixner <tglx@...utronix.de>
Cc: LKML <linux-kernel@...r.kernel.org>,
Anna-Maria Behnsen <anna-maria@...utronix.de>,
Marcelo Tosatti <mtosatti@...hat.com>,
Frederic Weisbecker <frederic@...nel.org>,
Peter Xu <peterx@...hat.com>,
Nitesh Narayan Lal <nitesh@...hat.com>,
Alex Belits <abelits@...vell.com>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
John Stultz <john.stultz@...aro.org>
Subject: Re: [patch 2/8] hrtimer: Force clock_was_set() handling for the
HIGHRES=n, NOHZ=y case
On Tue, Apr 27, 2021 at 10:25:39AM +0200, Thomas Gleixner wrote:
> void clock_was_set(void)
> {
> + if (!hrtimer_hres_active() && !tick_nohz_active)
> + goto out_timerfd;
> +
> /* Retrigger the CPU local events everywhere */
> on_each_cpu(retrigger_next_event, NULL, 1);
> +
> +out_timerfd:
> timerfd_clock_was_set();
> }
Isn't that simpler when written like:
if (hrtimer_hres_active() || tick_nohz_active())
on_each_cpu(retrigger_next_event, NULL, 1);
timerfd_clock_was_set();
?
Powered by blists - more mailing lists