lkml.org 
[lkml]   [2021]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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();

?

\
 
 \ /
  Last update: 2021-05-12 17:31    [W:0.125 / U:1.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site