summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-09-17 14:28:16 -0700
committerTim Murray <timmurray@google.com>2015-09-17 14:28:16 -0700
commit07d3c6aa066f26e488181a16557b3ec5e81fb462 (patch)
tree7b3168b6b2b4eeda4a182e242c90459312ecec0f /power
parentfe6e5108e447faf1a1368e80b9c62d123c967933 (diff)
downloadbullhead-07d3c6aa066f26e488181a16557b3ec5e81fb462.tar.gz
extend little core freq boost during fling
bug 24059298 Change-Id: I4852892e5a4099ab49bceffef289b66085ce808d
Diffstat (limited to 'power')
-rw-r--r--power/power.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/power/power.c b/power/power.c
index d6f3b20..fab7458 100644
--- a/power/power.c
+++ b/power/power.c
@@ -230,12 +230,15 @@ static void power_hint(struct power_module *module, power_hint_t hint,
if (data) {
// modify downmigrate duration based on interaction data hint
// 1000 <= duration_downmigrate <= 5000
+ // extend little core freq bump past downmigrate to soften downmigrates
int duration_hint = *((int*)data);
if (duration_hint > 1000) {
if (duration_hint < 5000) {
duration_downmigrate = duration_hint;
+ duration = duration_hint + 750;
} else {
duration_downmigrate = 5000;
+ duration = 5750;
}
}
}