commit | 468fd62ed9090ccbe872489df5d0d099510df4b5 | [log] [tgz] |
---|---|---|
author | Dimitri Sivanich <sivanich@sgi.com> | Mon Apr 28 02:13:37 2008 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Mon Apr 28 08:58:26 2008 -0700 |
tree | 017ab340cac72bf86423f181f085e7bc39fd70ea | |
parent | 8cece85ec744bdc7ea0fc2d33f65b3f031c28468 [diff] |
vmstats: add cond_resched() to refresh_cpu_vm_stats() We've found that it can take quite a bit of time (100's of usec) to get through the zone loop in refresh_cpu_vm_stats(). Adding a cond_resched() to allow other threads to run in the non-preemptive case. Signed-off-by: Dimitri Sivanich <sivanich@sgi.com> Acked-by: Christoph Lameter <clameter@sgi.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>