Re: [Xen-devel] [PATCHv4 2/5] arm: provide add_sized()

2015-05-13 Thread Jan Beulich
>>> On 11.05.15 at 16:45, wrote: > On 11/05/15 15:37, 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. >> >> This is needed for ticket locks to ensure the increment of the hea

Re: [Xen-devel] [PATCHv4 2/5] arm: provide add_sized()

2015-05-11 Thread David Vrabel
On 11/05/15 15:37, 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. > > This is needed for ticket locks to ensure the increment of the head ticket > does not affect the tail tick

[Xen-devel] [PATCHv4 2/5] arm: provide add_sized()

2015-05-11 Thread David Vrabel
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. This is needed for ticket locks to ensure the increment of the head ticket does not affect the tail ticket. Signed-off-by: David Vrabel Acked-by: Ian C