summaryrefslogtreecommitdiffstats
path: root/power-8952.c
Commit message (Collapse)AuthorAgeFilesLines
* 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