summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuiper <ckuiper@google.com>2018-02-09 14:27:38 -0800
committerChris Kuiper <ckuiper@google.com>2018-02-09 15:14:53 -0800
commit713fbf32339e8c26813e757a69ccaf294b1cea3c (patch)
treecaf454013ea6f1984ed7fbc5863b55dfd3722902
parent50590ff36901429055e18629cdd39cc156cb2900 (diff)
downloadmt8516-v4.4-713fbf32339e8c26813e757a69ccaf294b1cea3c.tar.gz
[MT] Tweak HPS algorithm parameters to improve CPU performance
This tweaks the HPS algorithm to improve performance at the expense of power consumption. This is necessary to avoid audio underruns caused by the CPU running out of juice and taking too long to turn on another core. Bug: b/73172349 Test: Ran the the 10h duration test with the new logic, no underruns observed. Change-Id: I438d3eee909c2287134c758c901eb5c7eeccdbb4
-rw-r--r--drivers/misc/mediatek/base/power/mt8167/mt_hotplug_strategy_platform.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/misc/mediatek/base/power/mt8167/mt_hotplug_strategy_platform.h b/drivers/misc/mediatek/base/power/mt8167/mt_hotplug_strategy_platform.h
index 769ca0679bcf..e7e3d1a97179 100644
--- a/drivers/misc/mediatek/base/power/mt8167/mt_hotplug_strategy_platform.h
+++ b/drivers/misc/mediatek/base/power/mt8167/mt_hotplug_strategy_platform.h
@@ -40,17 +40,17 @@ extern "C" {
/*
* CONFIG - runtime
*/
-#define DEF_CPU_UP_THRESHOLD 80
-#define DEF_CPU_UP_TIMES 2
-#define DEF_CPU_DOWN_THRESHOLD 70
-#define DEF_CPU_DOWN_TIMES 20
+#define DEF_CPU_UP_THRESHOLD 70
+#define DEF_CPU_UP_TIMES 1
+#define DEF_CPU_DOWN_THRESHOLD 50
+#define DEF_CPU_DOWN_TIMES 50
#define DEF_TLP_TIMES 1
#define EN_CPU_INPUT_BOOST 1
#define DEF_CPU_INPUT_BOOST_CPU_NUM 2
#define EN_CPU_RUSH_BOOST 1
-#define DEF_CPU_RUSH_BOOST_THRESHOLD 98
+#define DEF_CPU_RUSH_BOOST_THRESHOLD 90
#define DEF_CPU_RUSH_BOOST_TIMES 1
#define EN_HPS 1