From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754018AbcASNOV (ORCPT ); Tue, 19 Jan 2016 08:14:21 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:47392 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753636AbcASNNo (ORCPT ); Tue, 19 Jan 2016 08:13:44 -0500 Date: Tue, 19 Jan 2016 14:13:33 +0100 From: Peter Zijlstra To: Byungchul Park Cc: Frederic Weisbecker , LKML , Chris Metcalf , Thomas Gleixner , Luiz Capitulino , Christoph Lameter , "Paul E . McKenney" , Mike Galbraith , Rik van Riel Subject: Re: [PATCH 2/4] sched: Consolidate nohz CPU load update code Message-ID: <20160119131333.GD6344@twins.programming.kicks-ass.net> References: <1452700891-21807-1-git-send-email-fweisbec@gmail.com> <1452700891-21807-3-git-send-email-fweisbec@gmail.com> <20160114051840.GA4224@X58A-UD3R> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160114051840.GA4224@X58A-UD3R> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.