diff options
| author | Michael Bestas <mkbestas@lineageos.org> | 2019-10-15 19:24:58 +0300 |
|---|---|---|
| committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:57 +0300 |
| commit | 662bc2c978dafd4a804e68fa94712565fa121472 (patch) | |
| tree | b2a9183d67b381e590385d36701461753539c71c /power-8937.c | |
| parent | e0b5c193454bb9a823e479ea8f9f08b9538e2e22 (diff) | |
| download | vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.tar.gz vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.tar.bz2 vendor_qcom_opensource_power-662bc2c978dafd4a804e68fa94712565fa121472.zip | |
power: Use declared enums where possible
Change-Id: I079490f8ff61bf278dd69eb89b9dae5ce42e6052
Diffstat (limited to 'power-8937.c')
| -rw-r--r-- | power-8937.c | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/power-8937.c b/power-8937.c index 9963eb4..e3554f2 100644 --- a/power-8937.c +++ b/power-8937.c @@ -100,11 +100,20 @@ static int process_video_encode_hint(void* metadata) { * SLB for Core3 = -6 * hispeed load = 95 * hispeed freq = 998Mhz */ - int resource_values[] = { - 0x41820000, 0xa, 0x40c68100, 0xfffffffa, 0x40c68110, - 0xfffffffa, 0x40c68120, 0xfffffffa, 0x40c68130, 0xfffffffa, - 0x41440100, 0x5f, 0x4143c100, 0x3e6, - }; + int resource_values[] = {CPUBW_HWMON_SAMPLE_MS, + 0xa, + 0x40c68100, + 0xfffffffa, + 0x40c68110, + 0xfffffffa, + 0x40c68120, + 0xfffffffa, + 0x40c68130, + 0xfffffffa, + 0x41440100, + 0x5f, + 0x4143c100, + 0x3e6}; if (!video_encode_hint_sent) { perform_hint_action(video_encode_metadata.hint_id, resource_values, ARRAY_SIZE(resource_values)); @@ -113,10 +122,7 @@ static int process_video_encode_hint(void* metadata) { } } else { /* sample_ms = 10mS */ - int resource_values[] = { - 0x41820000, - 0xa, - }; + int resource_values[] = {CPUBW_HWMON_SAMPLE_MS, 0xa}; if (!video_encode_hint_sent) { perform_hint_action(video_encode_metadata.hint_id, resource_values, ARRAY_SIZE(resource_values)); |
