Messages in this thread | | | Date | Fri, 16 Jan 2009 11:18:24 +1100 | From | Herbert Xu <> | Subject | Re: [PATCH] percpu: add optimized generic percpu accessors |
| |
On Fri, Jan 16, 2009 at 01:15:44AM +0100, Ingo Molnar wrote: > > > So if you could design the API such that we have a variant of add/inc > > that automatically disables/enables preemption then we can optimise that > > away on x86. > > Yeah. percpu_add(var, 1) does exactly that on x86.
Awesome! Sounds like we can finally do away with those nasty hacks in the SNMP macros.
Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
| |