* Ingo Molnar <mingo@elte.hu> wrote:> Good point. I've done a simple:> > u64 atomic64_read(atomic64_t *ptr)> {> return cmpxchg8b(ptr, 0, 0);> }-1 is better i guess, as that way we can avoid dirtying the cacheline. Zero is way too common for atomics. Ingo