summaryrefslogtreecommitdiffstats
path: root/power-8952.c
Commit message (Collapse)AuthorAgeFilesLines
* power: Support power profiles on legacy platformsMichael Bestas2019-10-231-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Mar 26 01:52:03 2018 +0300 power: apq8084: Add support for power profile & boost * Based on msm8974 HAL. Change-Id: I88ce707b022f7b122ad7a2fcfc67fde0075d7e7a Author: Michael Bestas <mkbestas@lineageos.org> Date: Fri May 25 21:30:28 2018 +0300 power: Spring cleanup * 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 Author: Stefan Assmann <sassmann@kpanic.de> Date: Mon Jul 23 18:42:02 2018 +0200 power-8084: rework power profiles 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 Author: Corinna Vinschen <xda@vinschen.de> Date: Thu Aug 9 12:51:12 2018 +0200 power-8084: document performance settings Change-Id: Ic6dbe8511d694be0c0883f3052c612aa0a30c581 Signed-off-by: Corinna Vinschen <xda@vinschen.de> Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Mar 26 02:07:03 2018 +0300 power: msm8226: Add support for power profile & boost * Based on legacy HAL implementation Change-Id: Ifb93945e4e4005ef922cacee95e51bb95d5df9e3 Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Mar 26 02:13:51 2018 +0300 power: msm8610: Add support for power profile & boost * Based on legacy HAL implementation Change-Id: If778938b9703fd01185c2448bc83a09f04348333 Author: dianlujitao <dianlujitao@lineageos.org> Date: Sun Mar 25 18:08:45 2018 +0800 power: msm8916: Add support for power profile & boost * Based on legacy HAL implementation Change-Id: I20225ae9244023555724c76df5e208fd60eb3841 Author: Corinna Vinschen <xda@vinschen.de> Date: Wed Aug 29 14:18:03 2018 +0200 power-8916: fix using wrong array size in perform_hint_action * Fix a copy/paste bug using the wrong array size Change-Id: I07172b8e857ad3e6ad7761b3e090b518005ba26b Author: Ethan Chen <intervigil@gmail.com> Date: Sun Feb 25 20:46:37 2018 -0800 msm8952: Support power profiles * Add support for power profiles Change-Id: I0ce3578530dd8618468fd97b1e49ba512cb8fa83 Author: Zhao Wei Liew <zhaoweiliew@gmail.com> Date: Tue Nov 17 17:45:03 2015 +0800 power: msm8960: Implement performance profiles * Based on legacy HAL implementation Change-Id: Id7d16f97c177a790427d848e8ccea3286cf37a4e Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Jan 22 02:30:25 2018 +0200 power: msm8974: Add support for power profile * Based on Steve Kondik's and Zhao Wei Liew's implementation from the legacy HAL. Change-Id: Ie2a28b589537349cbcefc5b64e5404d346edf2c2 Author: dianlujitao <dianlujitao@lineageos.org> Date: Fri Mar 2 12:40:04 2018 +0800 power: Don't advertise power profile when interaction boost disabled * Power profile is fake news without interaction boost. Change-Id: Iceea885e6cb176f0620e76cfc335b7da500a0c2b Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Mar 26 03:00:15 2018 +0300 power: msm8992: Add support for power profile & boost * Based on legacy HAL implementation Change-Id: I9ebb44c1e215a76a95180a6188e80cb24f0b03ba Author: Michael Bestas <mkbestas@lineageos.org> Date: Mon Mar 26 03:00:30 2018 +0300 power: msm8994: Add support for power profile & boost * Based on legacy HAL implementation Change-Id: I5aa0b75b493825f2d87ce6eea0f3c3b1c3bba135 Author: Han Wang <wanghan1995315@gmail.com> Date: Tue Jul 24 17:12:14 2018 +0200 power: Fix several typos in power profiles Change-Id: I8302d41a902a037548ab52dc68ab8a0d7ca47861 Author: Corinna Vinschen <xda@vinschen.de> Date: Sun Aug 26 22:11:49 2018 +0200 power: set_power_profile: handle errors * 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> Author: dianlujitao <dianlujitao@lineageos.org> Date: Sat Feb 23 20:24:57 2019 +0800 power: Pass NULL parameter in powerHint if data is zero * This restores the behavior in AOSP and CAF power HAL to avoid confusion. Change-Id: I72f5bb9286e2f57121e39eea82d2fe8854989393 Change-Id: Ic483c0aa5e095f29f5de450472a6243d663468b6
* power: Clean up and fix set_interactive_overrideMichael Bestas2019-10-231-8/+4
| | | | | | | | | | | * Remove debug logs and useless comments * Consistent return values * Add back display hints for legacy platforms, they used to live in power-common.c but removed in commit 561cffcbfa66192e839e040d2da3bff2ecf8dcac * Check if set_interactive_override handled hints and print info message if it didn't Change-Id: Iff9f7327ba71c282e34ff3143c45a3f40f72fc92
* power: Clean up and fix video encode/decode hint handlingMichael Bestas2019-10-231-101/+80
| | | | | | | | * Unify code style for non legacy SoCs * Restore legacy SoC handling which used to live in power-common.c but was removed in commit 561cffcbfa66192e839e040d2da3bff2ecf8dcac Change-Id: Ieb84e6d6c8d762614e21267e81e6057aa64b36dd
* power: Find online CPU core and get scaling governornico2019-10-231-18/+6
| | | | Change-Id: I90aed1aaee8d3819d1de921674da924efd0a6c4f
* power: msm8952: Remove HBTP supportMichael Bestas2019-10-231-38/+0
| | | | | | * Not used Change-Id: I208275139b95911c88ccf930bf65e0c6089cc94a
* power: Remove unused camera_hint_ref_countMichael Bestas2019-10-231-27/+12
| | | | | | | | * These were part of the commit that added mutex locks for camera hints. We have now removed the locks so this is no longer necessary Change-Id: I38b91ce4e8fc811b8d9a04e6ec20521adde1b264
* power: Compile with -Wall -Wextra -WerrorMichael Bestas2019-10-231-2/+2
| | | | | | * And fix the build errors Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
* power: Use ARRAY_SIZE macro where possibleZhao Wei Liew2019-10-231-8/+5
| | | | Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
* power: Cache SOC ID checks for future queriesZhao Wei Liew2019-10-231-6/+5
| | | | | | | | | | | | | | Currently, get_soc_id() is queried on every SOC ID check in the SDM660, MSM8916, MSM8952, MSM8953 and MSM8974-family HALs. This results in extraneous file operations on every SOC ID check. Cache the result of get_soc_id() during the first query to reduce the number of file operations being made. This also brings back the behaviour in LineageOS 15.1 when the HALs were still stored in device/qcom/common. Change-Id: Ic17dbf12e7f9ecdb47b73a580f467df9ad630aa0
* power: Simplify display_hint_sentZhao Wei Liew2019-10-231-7/+2
| | | | | | | | | | | 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. Change-Id: If7dd11fcb578211f4f83847f9257232c4138ce53
* power: Simplify soc_id checksZhao Wei Liew2019-10-231-19/+14
| | | | | | | - Get soc_id in a common util function - Return boolean values for the target-specific soc_id checks Change-Id: I038c435d28855859f36566de7acf881037d070f2
* power: Use is_interactive_governor/is_schedutil_governorEthan Chen2019-10-231-12/+5
| | | | | | * Don't copy paste the same governor check code multiple times Change-Id: I2258553deb02a5ae149b0a96aca5fe5584f0ea14
* power: Remove leftover support for msm-dcvs governorMichael Bestas2019-10-231-2/+0
| | | | | | | * This is not used by any recent qcom SoC and not used by any SoC using this HAL. Change-Id: If9b2997104bcd5e3ff27fc39c75590d07e813f85
* power: clang-formatMichael Bestas2019-10-231-136/+104
| | | | | | | * Using AOSP interface .clang-format * Clean Android.mk while we are at it Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
* power: Remove mutex to hintsdianlujitao2019-10-231-10/+0
| | | | | | * No longer needed. Change-Id: I09fc90b4e5399b3f3b8a409edf3f57361da90100
* power: Remove unused arg from power_hint_override/set_interactive_overrideRashed Abdel-Tawab2019-10-231-3/+2
| | | | Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
* power: Use log/log.h instead of utils/Log.hEthan Chen2019-10-231-1/+1
| | | | Change-Id: I827c7f5ab27548eec8d6e4ee27a72fa883025002
* power: qcom: powerHal for sdm439 and sdm429Deevana Murthy Bandaru2018-08-161-23/+112
| | | | | | Power hal changes for camera encode Change-Id: Ib909844aea854ebffe8a00d83af9ca2d81c4f827
* power: Turn on/off display in SDM439Deevana Murthy Bandaru2018-07-241-2/+45
| | | | | | | PowerHAL writes to a sysfs node when it gets display on/off notification. Change-Id: I90acbef41cc01d7712cbb23765f3d278cb3ee637
* Relocate power HAL from device/qcom/commonDavid Ng2018-05-241-0/+195
Split module from combined device/qcom/common project into its own project. Relocation of some files from device/qcom/common at b5ce80cb1f60759a142a9338104d3adf3303ec0c. Change-Id: I6c13729a822f6fb9b5574b759ae9ec12154be464