RE: [this_cpu_xx 06/11] Eliminate get/put_cpu
From: Sosnowski, Maciej
Date: Tue Jun 09 2009 - 10:03:13 EST
Dan Williams wrote:
> [ added Maciej to the cc ]
Thanks Dan.
>
> On Fri, Jun 5, 2009 at 12:18 PM, <cl@xxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxx>
>
> Acked-by: Dan Williams <dan.j.williams@xxxxxxxxx>
Acked-by: Maciej Sosnowski <maciej.sosnowski@xxxxxxxxx>--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/