lkml.org 
[lkml]   [2009]   [Jan]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] percpu: add optimized generic percpu accessors
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.
>

And even on architectures which can only do percpu inc/dec we can make
the right thing happen for a constant here, so we really don't need a
new interface. This is a good thing.

-hpa


\
 
 \ /
  Last update: 2009-01-16 02:13    [W:0.110 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site