lkml.org 
[lkml]   [2016]   [Jan]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] sched: Consolidate nohz CPU load update code
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.

\
 
 \ /
  Last update: 2016-01-19 14:21    [W:0.024 / U:8.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site