diff options
author | Corinna Vinschen <xda@vinschen.de> | 2018-08-26 21:16:23 +0200 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-10-23 01:12:57 +0300 |
commit | 6102e6812c9437dc7a5fda88554d73ea923702cb (patch) | |
tree | 29912dd661f52b8fb628ee45e93172bb4834d3d6 /utils.h | |
parent | 662bc2c978dafd4a804e68fa94712565fa121472 (diff) | |
download | vendor_qcom_opensource_power-6102e6812c9437dc7a5fda88554d73ea923702cb.tar.gz vendor_qcom_opensource_power-6102e6812c9437dc7a5fda88554d73ea923702cb.tar.bz2 vendor_qcom_opensource_power-6102e6812c9437dc7a5fda88554d73ea923702cb.zip |
power: perform_hint_action: return an error code
So far the caller never knows if setting the hint actually worked.
This leads to a potential disconnect between the actual setting and the
UI because set_power_profile simply assumes perform_hint_action worked.
Return an error code or 0, so the callers can check for success.
Change-Id: I180a367e9d8581a63dfa703046b37bc5cae8c6cb
Signed-off-by: Corinna Vinschen <xda@vinschen.de>
Diffstat (limited to 'utils.h')
-rw-r--r-- | utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ 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); +int perform_hint_action(int hint_id, int resource_values[], int num_resources); void undo_hint_action(int hint_id); void undo_initial_hint_action(); void release_request(int lock_handle); |