Re: [PATCH 2/4] sched: Consolidate nohz CPU load update code

From: Peter Zijlstra
Date: Tue Jan 19 2016 - 08:14:24 EST


On Thu, Jan 14, 2016 at 02:18:40PM +0900, Byungchul Park wrote:
> > + __update_cpu_load_nohz(this_rq, READ_ONCE(jiffies), 0, 0);
>
> This question is not directly related to this patch but I am just
> curious about... Should we use READ_ONCE on jiffies which is already
> volatile type?

I'd say so, if only because I forever forget that jiffies is declared
volatile and READ_ONCE() makes the intent explicit.