lkml.org 
[lkml]   [2009]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [this_cpu_xx V7 0/8] Per cpu atomics in core allocators and cleanup
> However, I would need:
>
> this_cpu_cmpxchg(scalar, oldv, newv)
> (maps to x86 cmpxchg)
>
> this_cpu_add_return(scalar, value)
> (maps to x86 xadd)
>
> too. Is that a planned addition ?

It was not necessary. Its easy to add though.

> (while we are at it, we might as will add the xchg instruction,
> althrough it has an implied LOCK prefix on x86).

Well yeah thats a thorny one. One could use the cmpxchg instead?



\
 
 \ /
  Last update: 2009-12-17 20:33    [W:1.595 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site