Re: [Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() for acquire

2016-11-01 Thread Pranith Kumar
On Tue, Nov 1, 2016 at 10:44 AM, Paolo Bonzini wrote: > > Can you do the same for atomic_rcu_read__nocheck (both implementations)? > Sure, will send an updated patch. -- Pranith

Re: [Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() for acquire

2016-11-01 Thread Paolo Bonzini
On 01/11/2016 15:33, Pranith Kumar wrote: > We can use __atomic_load_n() saving a store and load from the _val. > > Signed-off-by: Pranith Kumar > --- > include/qemu/atomic.h | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/include/qemu/atomic.h b/include/qemu/atomi

[Qemu-devel] [PATCH] atomic.h: Use __atomic_load_n() for acquire

2016-11-01 Thread Pranith Kumar
We can use __atomic_load_n() saving a store and load from the _val. Signed-off-by: Pranith Kumar --- include/qemu/atomic.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/qemu/atomic.h b/include/qemu/atomic.h index 878fa07..6775603 100644 --- a/include/qemu/atomic.