From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Date: Tue, 23 Sep 2014 17:15:09 +0200 Message-ID: <20140923151509.GI3312@worktop.programming.kicks-ass.net> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Mime-Version: 1.0 Return-path: Content-Disposition: inline In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: List-subscribe: List-owner: List-post: List-archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Pranith Kumar Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Mikael Starvik , Jesper Nilsson , David Howells , Tony Luck , Fenghua Yu , Hirokazu Takata , Geert Uytterhoeven , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , "David S. Miller" On Tue, Sep 23, 2014 at 10:29:50AM -0400, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar Looks good to me; I can route it through the locking tree if there's no objections. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Tue, 23 Sep 2014 17:15:24 +0200 (CEST) Received: from casper.infradead.org ([85.118.1.10]:57873 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S27009616AbaIWPPWVLYun (ORCPT ); Tue, 23 Sep 2014 17:15:22 +0200 Received: from 178-85-85-44.dynamic.upc.nl ([178.85.85.44] helo=worktop) by casper.infradead.org with esmtpsa (Exim 4.80.1 #2 (Red Hat Linux)) id 1XWRo6-0006ft-V2; Tue, 23 Sep 2014 15:15:11 +0000 Received: by worktop (Postfix, from userid 1000) id 0F7036E0B72; Tue, 23 Sep 2014 17:15:09 +0200 (CEST) Date: Tue, 23 Sep 2014 17:15:09 +0200 From: Peter Zijlstra To: Pranith Kumar Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Mikael Starvik , Jesper Nilsson , David Howells , Tony Luck , Fenghua Yu , Hirokazu Takata , Geert Uytterhoeven , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "maintainer:X86 ARCHITECTURE..." , Chris Zankel , Max Filippov , Arnd Bergmann , "Paul E. McKenney" , Chen Gang , Victor Kamensky , Bjorn Helgaas , "Maciej W. Rozycki" , Sam Ravnborg , "open list:ALPHA PORT" , open list , "moderated list:ARM PORT" , "open list:CRIS PORT" , "open list:IA64 (Itanium) PL..." , "moderated list:M32R ARCHITECTURE" , "open list:M32R ARCHITECTURE" , "open list:M68K ARCHITECTURE" , "open list:MIPS" , "open list:PARISC ARCHITECTURE" , "open list:SUPERH" , "open list:SPARC + UltraSPAR..." , "open list:TENSILICA XTENSA..." , "open list:GENERIC INCLUDE/A..." Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Message-ID: <20140923151509.GI3312@worktop.programming.kicks-ass.net> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> User-Agent: Mutt/1.5.22.1 (2013-10-16) Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 42742 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: peterz@infradead.org Precedence: bulk List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips X-List-ID: linux-mips List-subscribe: List-owner: List-post: List-archive: X-list: linux-mips On Tue, Sep 23, 2014 at 10:29:50AM -0400, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar Looks good to me; I can route it through the locking tree if there's no objections. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: Re: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile Date: Tue, 23 Sep 2014 17:15:09 +0200 Message-ID: <20140923151509.GI3312@worktop.programming.kicks-ass.net> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Catalin Marinas , Will Deacon , Haavard Skinnemoen , Hans-Christian Egtvedt , Mikael Starvik , Jesper Nilsson , David Howells , Tony Luck , Fenghua Yu , Hirokazu Takata , Geert Uytterhoeven , Ralf Baechle , "James E.J. Bottomley" , Helge Deller , "David S. Miller" , To: Pranith Kumar Return-path: In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-Id: linux-mips List-subscribe: List-owner: List-post: List-archive: On Tue, Sep 23, 2014 at 10:29:50AM -0400, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar Looks good to me; I can route it through the locking tree if there's no objections. From mboxrd@z Thu Jan 1 00:00:00 1970 From: peterz@infradead.org (Peter Zijlstra) Date: Tue, 23 Sep 2014 17:15:09 +0200 Subject: [PATCH] atomic_read: Use ACCESS_ONCE() instead of cast to volatile In-Reply-To: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> References: <1411482607-20948-1-git-send-email-bobby.prani@gmail.com> Message-ID: <20140923151509.GI3312@worktop.programming.kicks-ass.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Sep 23, 2014 at 10:29:50AM -0400, Pranith Kumar wrote: > Use the much reader friendly ACCESS_ONCE() instead of the cast to volatile. This > is purely a style change. > > Signed-off-by: Pranith Kumar Looks good to me; I can route it through the locking tree if there's no objections.