[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0912171327220.3638@router.home>
Date: Thu, 17 Dec 2009 13:28:34 -0600 (CST)
From: Christoph Lameter <cl@...ux-foundation.org>
To: Mathieu Desnoyers <mathieu.desnoyers@...ymtl.ca>
cc: Tejun Heo <tj@...nel.org>, linux-kernel@...r.kernel.org,
Mel Gorman <mel@....ul.ie>,
Pekka Enberg <penberg@...helsinki.fi>,
Steven Rostedt <rostedt@...dmis.org>
Subject: Re: [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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists