diff options
author | 2017-12-19 10:11:19 -0500 | |
---|---|---|
committer | 2017-12-19 15:32:46 +0000 | |
commit | 031e7cf5ed379be85d4178b682df61362af3b1a7 (patch) | |
tree | 21af48b37d9e3f6045e978ec88af7055f0db4418 /infra/bots/recipe_modules/flavor/gn_android_flavor.py | |
parent | 54956e158131add01c5166f68e3a115b823fe5f4 (diff) |
Make sure we get the LITTLE cores out of powersave
Bug: skia:7420
NOTRY=true
Change-Id: I785135a3abc17f63d715d459668c768a6014d9b3
Reviewed-on: https://skia-review.googlesource.com/87001
Reviewed-by: Ravi Mistry <rmistry@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
Diffstat (limited to 'infra/bots/recipe_modules/flavor/gn_android_flavor.py')
-rw-r--r-- | infra/bots/recipe_modules/flavor/gn_android_flavor.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/infra/bots/recipe_modules/flavor/gn_android_flavor.py b/infra/bots/recipe_modules/flavor/gn_android_flavor.py index 1edf011279..be1f7e9739 100644 --- a/infra/bots/recipe_modules/flavor/gn_android_flavor.py +++ b/infra/bots/recipe_modules/flavor/gn_android_flavor.py @@ -113,7 +113,13 @@ class GNAndroidFlavorUtils(default_flavor.DefaultFlavorUtils): for i in self.disable_for_nanobench.get(device, []): self._set_cpu_online(i, 1) # enable - for i in self.cpus_to_scale.get(device, [0]): + scale_up = self.cpus_to_scale.get(device, [0]) + # For big.LITTLE devices, make sure we scale the LITTLE cores up; + # there is a chance they are still in powersave mode from when + # swarming slows things down for cooling down and charging. + if 0 not in scale_up: + scale_up.append(0) + for i in scale_up: # AndroidOne doesn't support ondemand governor. hotplug is similar. if device == 'AndroidOne': self._set_governor(i, 'hotplug') |