mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] mm: do not check unpopulated zones for draining and counter updates
If a zone is unpopulated then we do not need to check for pages that are to be drained and also not for vm counters that may need to be updated. Signed-off-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
006d22d9bb
commit
39bbcb8f88
2 changed files with 7 additions and 1 deletions
|
|
@ -321,6 +321,9 @@ void refresh_cpu_vm_stats(int cpu)
|
|||
for_each_zone(zone) {
|
||||
struct per_cpu_pageset *pcp;
|
||||
|
||||
if (!populated_zone(zone))
|
||||
continue;
|
||||
|
||||
pcp = zone_pcp(zone, cpu);
|
||||
|
||||
for (i = 0; i < NR_VM_ZONE_STAT_ITEMS; i++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue