summaryrefslogtreecommitdiffstats
path: root/power-8084.c
Commit message (Collapse)AuthorAgeFilesLines
* apq8084: revert interactive boost to msm8974 settingsHEADlineage-16.0Corinna Vinschen2019-10-301-14/+14
| | | | | | | This avoids some lagging scenarios Change-Id: Ia588b983279fcd6ef2aca99e7aafa5cd8793205e Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power: Release launch boost perflock when launch is completedtomascus2019-02-281-5/+29
| | | | | | | | | | | | | | | | | | | | | Currently, the launch boost perflock is held for a fixed duration, either specified in perfboostsconfig.xml for perf HAL platforms or hardcoded in the powerHAL for non-perf HAL platforms. Using a fixed duration for this perflock has two shortcomings: * perflock can be held for too long, causing the CPU freq and other resources to be boosted for too long even if the application has finished launching, resulting in excessive battery drainage * perflock can be held not long enough if it takes more than the timeout time to finish launch The framework sends out a powerhint for both when launch starts and when launch ends. The launch finish hint can be used to signal when to release the perflock. Reference: Wahoo power-libperfmgr Change-Id: I405cc453c5f58d9fb2583b9c6017f3964a0ce024
* power: Pass NULL parameter in powerHint if data is zerodianlujitao2019-02-281-2/+3
| | | | | | | * This restores the behavior in AOSP and CAF power HAL to avoid confusion. Change-Id: I72f5bb9286e2f57121e39eea82d2fe8854989393
* power: Build with with BOARD_VNDK_VERSIONCraig Tatlor2019-01-131-0/+1
| | | | | | time.h isnt included by default when vndk is enabled. Change-Id: I949ed271d7e7ed31e186019b0289299c1c8ff940
* power-8084: Revert POWER_HINT_LAUNCH handlingCorinna Vinschen2018-10-211-0/+15
| | | | | | | | | | | This effectively reverts commit 0ef4cb429ff3d42e8f8bd27d749ecd80f2911dc5. Users (including myself) noticed some laggy behaviour. The patch reverts to some more oomph at launch time, trying for a compromise between performance and power saving. Change-Id: I2d07686a131dcb75c9e590d99764d2a650cae507
* power: set_power_profile: handle errorsCorinna Vinschen2018-10-021-14/+26
| | | | | | | | | * Make sure current_power_profile reflects actual setting. * Propagate error condition up to caller. * Handle error from set_power_profile in power_hint_override. Change-Id: I8518d921a94c912c75f59fbf993a8f44116bdca9 Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power-8084: document performance settingsCorinna Vinschen2018-08-091-0/+6
| | | | | Change-Id: Ic6dbe8511d694be0c0883f3052c612aa0a30c581 Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power-8084: drop POWER_HINT_LAUNCH handlingCorinna Vinschen2018-08-091-14/+0
| | | | | | | * kernel governor is doing well by itself, but thanks all the same Change-Id: I64fa61a1d8ff0f20bac9e5c32c56b031570a564f Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power-8084: reduce interactive boostCorinna Vinschen2018-08-091-14/+14
| | | | | | | | | | * 1,1 GHz min freq is more than enough for interactive boost on apq8084 * default duration is unnecessarily long, reduce to 200 ms * 1,5 GHz min freq on 2 CPUs for 1 sec is entirely sufficient for launch action Change-Id: I5e51267ed32a3e50899627e4281321820fac237f Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power-8084: clean up codeCorinna Vinschen2018-08-091-12/+18
| | | | | | | | | | * express interactive boost frequencies as descriptive symbolic values rather than arbitrary hex numbers * express durations as descriptive symbolic values rather than just numbers in the code Change-Id: I47a92bd4c9b0b86ae0444d87345daf4e94d56126 Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power-8084: rework power profilesStefan Assmann2018-07-241-18/+20
| | | | | | | | | | | | profile_power_save: 2 cores max freq 1,2GHz profile_bias_power: 2 cores max freq 2,4GHz profile_bias_performance: 4 cores min freq 1,2GHz (2 active) profile_high_performance: 4 cores min freq 1,5GHz (4 active) - rearranged profiles in ascending order - fixed typo in profile_bias_performance Change-Id: I6f5d34e797c4f1f7ce9f7344f7f489c40debd094
* power: Spring cleanupMichael Bestas2018-05-251-19/+12
| | | | | | | | | | | | * Cleanup SoC specific files: - Fix code spacing and indentation - Remove dead code - Remove useless comments - Remove useless logs - Make code uniform between the files so it's easier to diff - Use declared enums when possible for power hints Change-Id: Ie1378c94c53b33299927c5eb1bfc19f1a42b8743
* power: apq8084: Add support for power profile & boostMichael Bestas2018-04-161-0/+166
| | | | | | * Based on msm8974 HAL. Change-Id: I88ce707b022f7b122ad7a2fcfc67fde0075d7e7a
* power: Introduce is_ondemand_governor and is_msmdcvs_governorMichael Bestas2018-03-261-4/+2
| | | | | | * Don't copy paste the same governor check code multiple times Change-Id: I1586a764ee617814c18fc68bf1aef868c480fe83
* power: Simplify display_boost checksZhao Wei Liew2018-03-261-13/+8
| | | | | | | | - Remove 8084 check as all 8084s make use of the display boost - Convert the display_boost check to an soc_id check for 8974pro - Move display_boost (now soc_id) check to 8974's HAL Change-Id: I237b9108e666f4cb0051d1c1bb22453d55ffcdc7
* power: Simplify display_hint_sentZhao Wei Liew2018-03-261-14/+4
| | | | | | | | | | | | | | | Check for whether the display hint has been sent at the start of the set_interactive() function in the common powerHAL. This gets rid of the need to replicate the same variable in every target-specific powerHAL that implements the set_interactive_override() function. Also remove the unnecessary saved_interactive_mode variable used by the msm-dcvs governor; its function is superseded by the variable display_hint_sent. Change-Id: If7dd11fcb578211f4f83847f9257232c4138ce53
* power: Use ARRAY_SIZE macro where possibleZhao Wei Liew2018-03-261-2/+2
| | | | | | | | | The common macro was introduced in the commit: 8fe35cc7dd88bbb82a7732591fac4b8ecd935970 So use it. Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
* power: Use log/log.h instead of utils/Log.hEthan Chen2018-03-261-1/+1
| | | | Change-Id: I827c7f5ab27548eec8d6e4ee27a72fa883025002
* power: Make the rest of the platforms compatible with HIDL halRashed Abdel-Tawab2017-12-311-1/+1
| | | | Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
* power: keep two cores online when display is onDilip Gudlur2014-01-141-0/+114
This change is specific to 8084 and has been modeled based on 8974 pro changes. Use PerfLock to keep two cores online when the display is on. Change-Id: Iffea0f9afbb3743cec2804da5884ec6d977b662a