From: Tim Deegan Subject: Re: [PATCHv4 4/8] arm: provide add_sized() Date: Tue, 5 May 2015 14:54:41 +0100 Message-ID: <20150505135441.GB31485@deinos.phlegethon.org> References: <1430408002-30666-1-git-send-email-david.vrabel@citrix.com> <1430408002-30666-5-git-send-email-david.vrabel@citrix.com> <1430833755.2660.98.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YpdJ6-0000Td-6V for xen-devel@lists.xenproject.org; Tue, 05 May 2015 13:54:44 +0000 Content-Disposition: inline In-Reply-To: <1430833755.2660.98.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: Keir Fraser , Andrew Cooper , Jennifer Herbert , David Vrabel , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org At 14:49 +0100 on 05 May (1430837355), Ian Campbell wrote: > On Thu, 2015-04-30 at 16:33 +0100, David Vrabel wrote: > > add_sized(ptr, inc) adds inc to the value at ptr using only the correct > > size of loads and stores for the type of *ptr. The add is /not/ atomic. > > atomic.h is an odd place for it then ;-) The reads and writes _are_ atomic, though. It's just that the whole r/m/w is not. Tim.