power: Introduce is_schedutil_governor
Change-Id: Ie3cfd0cb11b368cd9399a6dcea6b6cfa1f4d7916
This commit is contained in:
5
utils.c
5
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) {
|
||||
|
||||
1
utils.h
1
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);
|
||||
|
||||
Reference in New Issue
Block a user