lkml.org 
[lkml]   [2009]   [Jul]   [3]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateFri, 3 Jul 2009 13:26:42 +0200
FromIngo Molnar <>
SubjectRe: [PATCH 1/2] FRV: Implement atomic64_t

* 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


\
 
 \ /
  Last update: 2009-07-03 13:29    [from the cache]
©2003-2009