[PATCH] powerpc: Implement atomic{, 64}_{read, write}() without volatile

Paul Mackerras paulus at samba.org
Fri Aug 17 10:43:42 EST 2007


Segher Boessenkool writes:

> Instead, use asm() like all other atomic operations already do.

> +static __inline__ long atomic64_read(const atomic_t *v)

> +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.

Paul.



More information about the Linuxppc-dev mailing list