Re: [PATCH] powerpc: Implement atomic{,64}_{read,write}() without volatile
From: Segher Boessenkool <hidden>
Date: 2007-08-18 01:30:18
Also in:
linuxppc-dev, lkml
From: Segher Boessenkool <hidden>
Date: 2007-08-18 01:30:18
Also in:
linuxppc-dev, lkml
quoted
Instead, use asm() like all other atomic operations already do.quoted
+static __inline__ long atomic64_read(const atomic_t *v)quoted
+static __inline__ void atomic64_set(atomic_t *v, long i)s/atomic_t/atomic64_t/ in both lines. I've edited my copy of the patch.
Ouch, sorry about that. Segher