Re: [PATCH 2/6] nohz: Allow to check if remote CPU tick is stopped
From: Thomas Gleixner
Date: Sat Feb 17 2018 - 05:29:10 EST
On Thu, 15 Feb 2018, Frederic Weisbecker wrote:
> This check is racy but provides a good heuristic to determine whether
> a CPU may need a remote tick or not.
>
> +int tick_nohz_tick_stopped_cpu(int cpu)
s/int/bool/ but I'm not religious about that.
> +{
> + struct tick_sched *ts = per_cpu_ptr(&tick_cpu_sched, cpu);
> +
> + return ts->tick_stopped;
> +}
Other than that nit:
Reviewed-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>