mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Acked-by: Christoph Lameter <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
8cece85ec7
commit
468fd62ed9
1 changed files with 1 additions and 0 deletions
|
|
@ -322,6 +322,7 @@ void refresh_cpu_vm_stats(int cpu)
|
|||
p->expire = 3;
|
||||
#endif
|
||||
}
|
||||
cond_resched();
|
||||
#ifdef CONFIG_NUMA
|
||||
/*
|
||||
* Deal with draining the remote pageset of this
|
||||
|
|
|
|||
Loading…
Reference in a new issue