From: Christoph Lameter Date: Fri, 18 Dec 2009 22:26:23 +0000 (-0600) Subject: SLUB: Make slub statistics use this_cpu_inc X-Git-Tag: v2.6.34-rc1~189^2~1^5~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84e554e6865c4f4ae84d38800cf270b9a67901cc;p=pandora-kernel.git SLUB: Make slub statistics use this_cpu_inc this_cpu_inc() translates into a single instruction on x86 and does not need any register. So use it in stat(). We also want to avoid the calculation of the per cpu kmem_cache_cpu structure pointer. So pass a kmem_cache pointer instead of a kmem_cache_cpu pointer. Signed-off-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed