vmstat: use this_cpu() to avoid irqon/off sequence in refresh_cpu_vm_stats
authorChristoph Lameter <[email protected]>
Wed, 11 Sep 2013 21:21:32 +0000 (14:21 -0700)
committerLinus Torvalds <[email protected]>
Wed, 11 Sep 2013 22:57:31 +0000 (15:57 -0700)
commitfbc2edb05354480a88aa39db8a6acb5782fa1a1b
treeb3d10c8b1310e264a9d9d4b9a8ea3416b4d12c0d
parent4edb0748b23887140578d68f5f4e6e2de337a481
vmstat: use this_cpu() to avoid irqon/off sequence in refresh_cpu_vm_stats

Disabling interrupts repeatedly can be avoided in the inner loop if we use
a this_cpu operation.

Signed-off-by: Christoph Lameter <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
CC: Tejun Heo <[email protected]>
Cc: Joonsoo Kim <[email protected]>
Cc: Alexey Dobriyan <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmstat.c