Christoph Lameter 2bb921e526 vmstat: create separate function to fold per cpu diffs into local counters
The main idea behind this patchset is to reduce the vmstat update overhead
by avoiding interrupt enable/disable and the use of per cpu atomics.

This patch (of 3):

It is better to have a separate folding function because
refresh_cpu_vm_stats() also does other things like expire pages in the
page allocator caches.

If we have a separate function then refresh_cpu_vm_stats() is only called
from the local cpu which allows additional optimizations.

The folding function is only called when a cpu is being downed and
therefore no other processor will be accessing the counters.  Also
simplifies synchronization.

[akpm@linux-foundation.org: fix UP build]
Signed-off-by: Christoph Lameter <cl@linux.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
CC: Tejun Heo <tj@kernel.org>
Cc: Joonsoo Kim <js1304@gmail.com>
Cc: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2013-09-11 15:57:31 -07:00
..
2013-08-26 14:09:03 -04:00
2013-08-14 13:55:15 +05:30
2013-09-06 13:21:16 -07:00
2013-09-09 16:35:29 -07:00
2013-09-10 13:33:09 -07:00
2013-09-10 13:03:41 -07:00
2013-09-10 13:33:09 -07:00
2013-07-03 16:31:35 -07:00
2013-07-03 16:07:39 -07:00
2013-08-26 18:40:56 -04:00
2013-08-27 01:44:40 +02:00
2013-09-05 20:46:06 -04:00
2013-07-23 16:01:28 -07:00
2013-07-15 11:25:00 +09:30
2013-08-26 20:15:23 +09:00
2013-08-22 22:13:54 -07:00
2013-07-03 16:07:32 -07:00
2013-08-02 11:34:30 +08:00
2013-08-23 10:22:29 +02:00
2013-07-18 13:05:23 -07:00
2013-08-22 20:30:15 -07:00
2013-08-09 10:49:00 +02:00
2013-07-26 16:19:48 -07:00
2013-08-28 21:35:14 -07:00
2013-07-16 22:00:14 -07:00
2013-07-09 10:33:30 -07:00
2013-08-12 17:54:05 +02:00
2013-08-12 15:27:01 +00:00
2013-09-08 20:20:23 -04:00
2013-07-03 16:08:05 -07:00
2013-09-03 16:40:32 -04:00
2013-09-10 13:53:52 -07:00
2013-08-12 15:27:01 +00:00
2013-09-10 13:53:52 -07:00
2013-09-06 13:30:06 -07:00
2013-09-03 10:07:40 -07:00
2013-07-03 16:08:05 -07:00
2013-09-11 15:57:31 -07:00
2013-08-13 17:57:48 -07:00
2013-07-24 15:12:53 -07:00
2013-08-05 10:52:36 -06:00
2013-07-10 18:11:34 -07:00