summaryrefslogtreecommitdiffstats
path: root/power-8974.c
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-06-09 16:16:19 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit4c96994df0edd76b981d34776823681440f3b371 (patch)
tree78889832ac259da9450a862278af5c0357bfd69b /power-8974.c
parent64ac5a0748769df53da297c911aa96254bd3b047 (diff)
downloadvendor_qcom_opensource_power-4c96994df0edd76b981d34776823681440f3b371.tar.gz
vendor_qcom_opensource_power-4c96994df0edd76b981d34776823681440f3b371.tar.bz2
vendor_qcom_opensource_power-4c96994df0edd76b981d34776823681440f3b371.zip
power: Remove leftover support for ondemand governor
Change-Id: Id4c2aa5efa7101535a7311e34529e0b90c7491f1
Diffstat (limited to 'power-8974.c')
-rw-r--r--power-8974.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/power-8974.c b/power-8974.c
index 9aa560b..6186818 100644
--- a/power-8974.c
+++ b/power-8974.c
@@ -47,7 +47,6 @@
#include "power-common.h"
#include "utils.h"
-static int display_hint_sent;
static int display_hint2_sent;
static int first_display_off_hint;
extern int display_boost;
@@ -78,20 +77,6 @@ int set_interactive_override(int on) {
display_hint2_sent = 1;
}
}
-
- if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) &&
- (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) {
- int resource_values[] = {MS_500, SYNC_FREQ_600, OPTIMAL_FREQ_600,
- THREAD_MIGRATION_SYNC_OFF};
-
- if (!display_hint_sent) {
- perform_hint_action(DISPLAY_STATE_HINT_ID, resource_values,
- sizeof(resource_values) / sizeof(resource_values[0]));
- display_hint_sent = 1;
- }
-
- return HINT_HANDLED;
- }
} else {
/* Display on */
if (display_boost && display_hint2_sent) {
@@ -100,14 +85,6 @@ int set_interactive_override(int on) {
sizeof(resource_values2) / sizeof(resource_values2[0]));
display_hint2_sent = 0;
}
-
- if ((strncmp(governor, ONDEMAND_GOVERNOR, strlen(ONDEMAND_GOVERNOR)) == 0) &&
- (strlen(governor) == strlen(ONDEMAND_GOVERNOR))) {
- undo_hint_action(DISPLAY_STATE_HINT_ID);
- display_hint_sent = 0;
-
- return HINT_HANDLED;
- }
}
return HINT_NONE;