summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2018-06-09 16:10:06 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commit64ac5a0748769df53da297c911aa96254bd3b047 (patch)
tree9d07b64afc8ac9cd512c36ea76cb18a609fbf0c2
parent420f26552469aa8b98692c27de2320a9c1c5dbc2 (diff)
downloadvendor_qcom_opensource_power-64ac5a0748769df53da297c911aa96254bd3b047.zip
vendor_qcom_opensource_power-64ac5a0748769df53da297c911aa96254bd3b047.tar.gz
vendor_qcom_opensource_power-64ac5a0748769df53da297c911aa96254bd3b047.tar.bz2
power: Remove leftover support for msm-dcvs governor
* This is not used by any recent qcom SoC and not used by any SoC using this HAL. Change-Id: If9b2997104bcd5e3ff27fc39c75590d07e813f85
-rw-r--r--power-660.c2
-rw-r--r--power-8916.c6
-rw-r--r--power-8952.c2
-rw-r--r--power-8953.c2
-rw-r--r--power-common.h5
5 files changed, 0 insertions, 17 deletions
diff --git a/power-660.c b/power-660.c
index ce7c19b..a336b85 100644
--- a/power-660.c
+++ b/power-660.c
@@ -51,7 +51,6 @@
#define MIN_VAL(X, Y) ((X > Y) ? (Y) : (X))
-static int saved_interactive_mode = -1;
static int display_hint_sent;
static int video_encode_hint_sent;
static int cam_preview_hint_sent;
@@ -160,7 +159,6 @@ int set_interactive_override(int on) {
display_hint_sent = 0;
}
}
- saved_interactive_mode = !!on;
return HINT_HANDLED;
}
diff --git a/power-8916.c b/power-8916.c
index a685c40..0c59ab3 100644
--- a/power-8916.c
+++ b/power-8916.c
@@ -56,11 +56,6 @@ char scaling_min_freq[4][80] = {"sys/devices/system/cpu/cpu0/cpufreq/scaling_min
"sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq",
"sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq"};
-static int saved_dcvs_cpu0_slack_max = -1;
-static int saved_dcvs_cpu0_slack_min = -1;
-static int saved_mpdecision_slack_max = -1;
-static int saved_mpdecision_slack_min = -1;
-static int saved_interactive_mode = -1;
static int slack_node_rw_failed = 0;
static int display_hint_sent;
int display_boost;
@@ -209,6 +204,5 @@ int set_interactive_override(int on) {
} break;
} /* End of check condition during the DISPLAY ON case */
}
- saved_interactive_mode = !!on;
return HINT_HANDLED;
}
diff --git a/power-8952.c b/power-8952.c
index 9ae1292..a3dd3e2 100644
--- a/power-8952.c
+++ b/power-8952.c
@@ -51,7 +51,6 @@
#define MIN_VAL(X, Y) ((X > Y) ? (Y) : (X))
-static int saved_interactive_mode = -1;
static int display_hint_sent;
static int video_encode_hint_sent;
static int camera_hint_ref_count;
@@ -140,7 +139,6 @@ int set_interactive_override(int on) {
display_hint_sent = 0;
}
}
- saved_interactive_mode = !!on;
set_i_count++;
ALOGI("Got set_interactive hint on= %d, count= %d\n", on, set_i_count);
diff --git a/power-8953.c b/power-8953.c
index 1ecd119..2525d7a 100644
--- a/power-8953.c
+++ b/power-8953.c
@@ -51,7 +51,6 @@
#define MIN_VAL(X, Y) ((X > Y) ? (Y) : (X))
-static int saved_interactive_mode = -1;
static int display_hint_sent;
static int video_encode_hint_sent;
static int cam_preview_hint_sent;
@@ -145,7 +144,6 @@ int set_interactive_override(int on) {
display_hint_sent = 0;
}
}
- saved_interactive_mode = !!on;
set_i_count++;
ALOGI("Got set_interactive hint on= %d, count= %d\n", on, set_i_count);
diff --git a/power-common.h b/power-common.h
index 0ec18ff..0d8e11f 100644
--- a/power-common.h
+++ b/power-common.h
@@ -36,14 +36,9 @@ extern "C" {
#define NODE_MAX (64)
#define SCALING_GOVERNOR_PATH "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
-#define DCVS_CPU0_SLACK_MAX_NODE "/sys/module/msm_dcvs/cores/cpu0/slack_time_max_us"
-#define DCVS_CPU0_SLACK_MIN_NODE "/sys/module/msm_dcvs/cores/cpu0/slack_time_min_us"
-#define MPDECISION_SLACK_MAX_NODE "/sys/module/msm_mpdecision/slack_time_max_us"
-#define MPDECISION_SLACK_MIN_NODE "/sys/module/msm_mpdecision/slack_time_min_us"
#define SCALING_MIN_FREQ "/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq"
#define ONDEMAND_GOVERNOR "ondemand"
#define INTERACTIVE_GOVERNOR "interactive"
-#define MSMDCVS_GOVERNOR "msm-dcvs"
#define SCHEDUTIL_GOVERNOR "schedutil"
#define HINT_HANDLED (0)