Fix for non-CM ROM
diff --git a/nvpowerhal.cpp b/nvpowerhal.cpp
index 330b13a..79e507f 100644
--- a/nvpowerhal.cpp
+++ b/nvpowerhal.cpp
@@ -259,8 +259,8 @@
// the interaction boost so that we can maintain is constantly during
// interaction.
pInfo->hint_interval[POWER_HINT_INTERACTION] = 90000;
- pInfo->hint_interval[POWER_HINT_CPU_BOOST] = 500000;
- pInfo->hint_interval[POWER_HINT_AUDIO] = 500000;
+ //pInfo->hint_interval[POWER_HINT_CPU_BOOST] = 500000;
+ //pInfo->hint_interval[POWER_HINT_AUDIO] = 500000;
pInfo->hint_interval[POWER_HINT_LOW_POWER] = 0;
// Initialize features
@@ -487,7 +487,7 @@
396000,
s2ns(2));
break;
- case POWER_HINT_CPU_BOOST:
+/* case POWER_HINT_CPU_BOOST:
// Boost to 1.2Ghz dual core
pInfo->mTimeoutPoker->requestPmQosTimed(PMQOS_CONSTRAINT_CPU_FREQ,
PM_QOS_BOOST_PRIORITY,
@@ -519,6 +519,7 @@
300000,
s2ns(1));
break;
+*/
case POWER_HINT_LOW_POWER:
#ifdef POWER_MODE_SET_INTERACTIVE
// Set interactive governor parameters according to power mode
diff --git a/powerhal.h b/powerhal.h
index 56852c8..6caea4b 100644
--- a/powerhal.h
+++ b/powerhal.h
@@ -30,7 +30,7 @@
#define MAX_INPUT_DEV_COUNT 12
#define MAX_USE_CASE_STRING_SIZE 80
// This needs set to the largest power hint in the enum in hardware/power.h
-#define MAX_POWER_HINT_COUNT POWER_HINT_SET_PROFILE
+#define MAX_POWER_HINT_COUNT POWER_HINT_DISABLE_TOUCH
#define DEFAULT_MIN_ONLINE_CPUS 2
#define DEFAULT_MAX_ONLINE_CPUS 0