]> git.baikalelectronics.ru Git - kernel.git/commit
percpu_counter: use this_cpu_ptr() instead of per_cpu_ptr()
authorChristoph Lameter <cl@linux.com>
Tue, 26 Oct 2010 21:23:09 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:19 +0000 (16:52 -0700)
commit84a82460fb154960580687fc41e3797a3a4c535e
treede5ad33475f3234048cc07d4676d963b8b4f314e
parent22c9d84188d1e3f0d67ea513396760adbe5da0b7
percpu_counter: use this_cpu_ptr() instead of per_cpu_ptr()

this_cpu_ptr() avoids an array lookup and can use the percpu offset of the
local cpu directly.

Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/percpu_counter.c