Re: [cpuops cmpxchg double V1 1/4] Generic support for this_cpu_cmpxchg_double

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Christoph Lameter
Date: Thursday, December 23, 2010 - 5:16 pm

On Wed, 22 Dec 2010, Tejun Heo wrote:


Really? How would that work? I tried with uint128 but could not get the
compiler to do the right thing.


Yes. You may want to use cmpxchg_double on 32 bit entities for backwards
compatibilities sake or any other smaller unit size. But those could also
be realized using this_cpu_cmpxchg_<double the size> by just aggregating
the amount.

If we can indeed pass 128 bit entities (as claimed by hpa) via registers
then the logical choice would be to do

	this_cpu_cmpxchg_16(pcp, old, new)

instead of cmpxchg_double. All parameters would have to be bit.
Then we can avoid the strange cmpxchg_double semantics and can completely
avoid introducing those.




--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[cpuops cmpxchg double V1 0/4] this_cpu_cmpxchg_double support, Christoph Lameter, (Tue Dec 14, 10:48 am)
[cpuops cmpxchg double V1 1/4] Generic support for this_cp ..., Christoph Lameter, (Tue Dec 14, 10:48 am)
[cpuops cmpxchg double V1 2/4] x86: this_cpu_cmpxchg_doubl ..., Christoph Lameter, (Tue Dec 14, 10:48 am)
[cpuops cmpxchg double V1 3/4] slub: Get rid of slab_free_ ..., Christoph Lameter, (Tue Dec 14, 10:48 am)
[cpuops cmpxchg double V1 4/4] Lockless (and preemptless) ..., Christoph Lameter, (Tue Dec 14, 10:48 am)
Re: [cpuops cmpxchg double V1 2/4] x86: this_cpu_cmpxchg_d ..., Christoph Lameter, (Wed Dec 15, 9:12 am)
Re: [cpuops cmpxchg double V1 2/4] x86: this_cpu_cmpxchg_d ..., Christoph Lameter, (Wed Dec 15, 9:20 am)
Re: [cpuops cmpxchg double V1 2/4] x86: this_cpu_cmpxchg_d ..., Christoph Lameter, (Wed Dec 15, 9:41 am)
Re: [cpuops cmpxchg double V1 2/4] x86: this_cpu_cmpxchg_d ..., Christoph Lameter, (Wed Dec 15, 10:53 am)
Re: [cpuops cmpxchg double V1 1/4] Generic support for thi ..., Christoph Lameter, (Tue Dec 21, 3:36 pm)
Re: [cpuops cmpxchg double V1 1/4] Generic support for thi ..., Christoph Lameter, (Thu Dec 23, 5:16 pm)
Re: [cpuops cmpxchg double V1 1/4] Generic support for thi ..., Christoph Lameter, (Fri Dec 24, 9:53 pm)
Re: [cpuops cmpxchg double V1 1/4] Generic support for thi ..., Christoph Lameter, (Sat Dec 25, 4:55 pm)