lkml.org 
[lkml]   [2009]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRE: [this_cpu_xx 06/11] Eliminate get/put_cpu
Dan Williams wrote:
> [ added Maciej to the cc ]

Thanks Dan.

>
> On Fri, Jun 5, 2009 at 12:18 PM, <cl@linux-foundation.org> wrote:
>> There are cases where we can use this_cpu_ptr and as the result
>> of using this_cpu_ptr() we no longer need to determine the current executing cpu.
>>
>> In those places no get/put_cpu combination is needed anymore.
>> The local cpu variable can be eliminated.
>>
>> Preemption still needs to be disabled and enabled since the
>> modifications of the per cpu variables is not atomic. There may
>> be multiple per cpu variables modified and those must all
>> be from the same processor.
>>
>> cc: Dan Williams <dan.j.williams@intel.com>
>
> Acked-by: Dan Williams <dan.j.williams@intel.com>

Acked-by: Maciej Sosnowski <maciej.sosnowski@intel.com>

\
 
 \ /
  Last update: 2009-06-09 16:05    [W:0.172 / U:1.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site