power: Add property check for EXPENSIVE_RENDERING

Detect the support status of EXPENSIVE_RENDERING mode based on the
vendor property, which can be configured per target.

Change-Id: I39ed53f5df506bb8b7a714138d35e5b29bcfa4a5
CRs-Fixed: 3364809
This commit is contained in:
Jun Wang
2022-12-15 15:21:34 +08:00
parent 92e50efac0
commit a76131a3c1
5 changed files with 35 additions and 0 deletions

View File

@@ -29,6 +29,10 @@
#include <cutils/properties.h>
typedef struct {
char value[PROP_VALUE_MAX];
} PropVal;
int sysfs_read(char *path, char *s, int num_bytes);
int sysfs_write(char *path, char *s);
int get_scaling_governor(char governor[], int size);
@@ -45,3 +49,4 @@ void undo_hint_action(int hint_id);
void release_request(int lock_handle);
int interaction_with_handle(int lock_handle, int duration, int num_args, int opt_list[]);
int perf_hint_enable(int hint_id, int duration);
PropVal perf_get_property(const char *prop , const char *def_val);