Re: [PATCH] percpu_counter: change inaccurate comment

From: Christoph Lameter
Date: Thu Oct 07 2010 - 16:13:56 EST


On Thu, 7 Oct 2010, Eric Dumazet wrote:

> If enclosed by preempt_disable()/preempt_enable(), maybe we could use
> __this_cpu_ptr() ?

The only difference between __this_cpu_ptr and this_cpu_ptr is that
this_cpu_ptr checks that preempt was disabled. __this_cpu_ptr allows use
even without preempt. Preempt must be disabled here so the use of
this_cpu_ptr is appropriate.


--
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/