diff --git a/utils.c b/utils.c index 89754fb..dfd5127 100644 --- a/utils.c +++ b/utils.c @@ -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) { diff --git a/utils.h b/utils.h index ffad091..2738400 100644 --- a/utils.h +++ b/utils.h @@ -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);