From: Christoph Lameter Date: Tue, 5 Feb 2008 06:29:16 +0000 (-0800) Subject: vmstat: small revisions to refresh_cpu_vm_stats() X-Git-Tag: v2.6.25-rc1~939 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7f75e25860ac0a7b70cf6e14c37618d2d2bb890;p=pandora-kernel.git vmstat: small revisions to refresh_cpu_vm_stats() 1. Add comments explaining how the function can be called. 2. Collect global diffs in a local array and only spill them once into the global counters when the zone scan is finished. This means that we only touch each global counter once instead of each time we fold cpu counters into zone counters. Signed-off-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed