summaryrefslogtreecommitdiffstats
path: root/utils.c
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2019-09-30 23:04:35 +0300
committerMichael Bestas <mkbestas@lineageos.org>2019-10-23 01:12:56 +0300
commitbd869d265f52e4d9e8f96fc625c185b9b762a0b5 (patch)
tree55f647f9986fdd26ee21bc853d8e5c06cf95beae /utils.c
parent4c96994df0edd76b981d34776823681440f3b371 (diff)
downloadvendor_qcom_opensource_power-bd869d265f52e4d9e8f96fc625c185b9b762a0b5.tar.gz
vendor_qcom_opensource_power-bd869d265f52e4d9e8f96fc625c185b9b762a0b5.tar.bz2
vendor_qcom_opensource_power-bd869d265f52e4d9e8f96fc625c185b9b762a0b5.zip
power: Introduce is_schedutil_governor
Change-Id: Ie3cfd0cb11b368cd9399a6dcea6b6cfa1f4d7916
Diffstat (limited to 'utils.c')
-rw-r--r--utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.c b/utils.c
index 7f6229b..57ffc91 100644
--- a/utils.c
+++ b/utils.c
@@ -192,6 +192,11 @@ int is_interactive_governor(char* governor) {
return 0;
}
+int is_schedutil_governor(char* governor) {
+ if (strncmp(governor, SCHEDUTIL_GOVERNOR, (strlen(SCHEDUTIL_GOVERNOR) + 1)) == 0) return 1;
+ return 0;
+}
+
#ifndef INTERACTION_BOOST
void interaction(int UNUSED(duration), int UNUSED(num_args), int UNUSED(opt_list[])) {
#else