Messages in this thread | | | Date | Thu, 15 Jan 2009 14:07:40 +0100 | From | Ingo Molnar <> | Subject | Re: [patch] add optimized generic percpu accessors |
| |
* Tejun Heo <tj@kernel.org> wrote:
> It is an optimization and a cleanup, and adds the following new > generic percpu methods: > > percpu_read() > percpu_write() > percpu_add() > percpu_sub() > percpu_or() > percpu_xor()
nit: add percpu_and() here ;-)
> tj: * fixed generic percpu_sub() definition as Roel Kluin pointed out > * added percpu_and() for completeness's sake > * made generic percpu ops atomic against preemption
okay - as long as the optimized versions stay single-instruction i'm a happy camper.
Ingo
| |