power: Introduce is_schedutil_governor

Change-Id: Ie3cfd0cb11b368cd9399a6dcea6b6cfa1f4d7916
This commit is contained in:
Michael Bestas
2019-09-30 23:04:35 +03:00
parent 4a5a366f21
commit b3a670611c
2 changed files with 6 additions and 0 deletions

View File

@@ -198,6 +198,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;
}
PropVal perf_get_property(const char* prop, const char* def_val) {
PropVal retVal;
if (qcopt_handle && perf_get_prop) {

View File

@@ -38,6 +38,7 @@ int sysfs_write(char* path, char* s);
int get_scaling_governor(char governor[], int size);
int get_scaling_governor_check_cores(char governor[], int size, int core_num);
int is_interactive_governor(char*);
int is_schedutil_governor(char*);
void perform_hint_action(int hint_id, int resource_values[], int num_resources);
void undo_hint_action(int hint_id);