vmstat: Use this_cpu_inc_return for vm statistics
authorChristoph Lameter <cl@linux.com>
Mon, 6 Dec 2010 17:40:02 +0000 (11:40 -0600)
committerTejun Heo <tj@kernel.org>
Fri, 17 Dec 2010 14:18:04 +0000 (15:18 +0100)
this_cpu_inc_return() saves us a memory access there. Code
size does not change.

V1->V2:
- Fixed the location of the __per_cpu pointer attributes
- Sparse checked
V2->V3:
- Move fixes to __percpu attribute usage to earlier patch

Reviewed-by: Pekka Enberg <penberg@kernel.org>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>

No differences found