summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* power: Rename power-8952.c to power-8937.cMichael Bestas2019-10-232-1/+247
| | | | | | | * Latest power-8952.c is used for msm8937 with mpctl V3. Rename the file so we can add back the legacy msm8952 handling. Change-Id: Iccd2a3c0abed2ef10d5f6c2182c0509a2fbe611d
* Reduce hwbinder buffer size for power HALVinay Verma2019-10-232-0/+12
| | | | | | | Set hwbinder buffer size to 16KB for 32 bit architecture. Change-Id: I4272a12853269dd6363f58a5bb81caa09cc47e9a CRs-Fixed: 2315283
* power: Remove unused camera_hint_ref_countMichael Bestas2019-10-234-80/+34
| | | | | | | | * 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-239-16/+16
| | | | | | * And fix the build errors Change-Id: I183203edfd92d4672893d74aa7428bc9f5e17772
* power: msm8916: Code clean updianlujitao2019-10-231-15/+5
| | | | | | | * Minor cleanup * Remove unused varibles and checks Change-Id: I128953c2aa6a822d3950a872e50489b864e7a99c
* power: fix sysfs_read/sysfs_write usageCorinna Vinschen2019-10-233-12/+12
| | | | | | | | | | | | * The incoming path to sysfs_read/sysfs_write should be const, as in open(2) call. * Redefine scaling_gov_path as const pointer array. * Since sysfs_read works on a simple absolute path anyway, make sure the scaling_gov_path paths *are* absolute. Otherwise the code only works if Power HAL has / as CWD, which is a bit fragile. Change-Id: I70c08f8137842569514bcb3f6e0617d46044e6ab Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power: msm8996: Remove dead codeMichael Bestas2019-10-231-27/+1
| | | | Change-Id: Ia26e5989a7063baad048e017715fe0f31332fb75
* power: add back check for ro.vendor.extension_libraryCorinna Vinschen2019-10-231-2/+11
| | | | | | | | | | | | | | This partially reverts I0ce40bbefb8c867dda8ee5eb1f948af2106e692d, "power: Using PerfHAL API". Especially older systems don't provide libqti-perfd-client.so but this is hardcoded since the aforementioned change. Use the former code checking for ro.vendor.extension_library and try to load that library if the property exists before falling back to loading libqti-perfd-client.so. Change-Id: If89e3b88062be10af7cfd43b6ba92a22fda32754 Signed-off-by: Corinna Vinschen <xda@vinschen.de>
* power: Use ARRAY_SIZE macro where possibleZhao Wei Liew2019-10-2315-37/+30
| | | | Change-Id: Ie47d0e6b91b7bba378b0fdf53a345a021b0c2d48
* power: Drop default POWER_HINT_INTERACTION routinedianlujitao2019-10-231-6/+0
| | | | | | | | | | | | | | | * These boost resources were introduced years ago and are no longer suitable for modern SoCs. Each SoC should implement its own boost resource in either platform specific power HAL source file or perf HAL. * Starting from LineageOS 15.1, recent SoCs no longer handle POWER_HINT_INTERACTION in the power HAL, so power_hint_override returns HINT_NONE and the default routine is always executed. E.g, on msm8996 little cluster is always boosted to max frequency on touch, which causes a huge battery drain. * As a bonus, the "Failed to apply optimization" errors are gone. Change-Id: I322f23f40fc5da7485f2c7a6cf8ee952d0fb94c6
* power: Cache SOC ID checks for future queriesZhao Wei Liew2019-10-235-30/+25
| | | | | | | | | | | | | | 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: Add back display_boost checksZhao Wei Liew2019-10-233-17/+26
| | | | | | | | - Remove 8084 check as all 8084s make use of the display boost - Convert the display_boost check to an soc_id check for 8974pro - Add back display_boost (now soc_id) check to 8974's HAL Change-Id: I237b9108e666f4cb0051d1c1bb22453d55ffcdc7
* power: Simplify display_hint_sentZhao Wei Liew2019-10-2312-78/+33
| | | | | | | | | | | 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-236-139/+134
| | | | | | | - Get soc_id in a common util function - Return boolean values for the target-specific soc_id checks Change-Id: I038c435d28855859f36566de7acf881037d070f2
* power: Remove unused list utilsMichael Bestas2019-10-232-28/+0
| | | | | | | * They were added in 6ec1206b246a164acfb0aa7b43af9b04c759063e but never used Change-Id: I0f0d0336cd91715eb8aa4dcb42ae1e449da8603b
* power: Avoid interaction build errorsMichael Bestas2019-10-234-8/+2
| | | | Change-Id: I77942f23a9c617abac1a8533cfc1fd7bfa7f66e8
* power: Use is_interactive_governor/is_schedutil_governorEthan Chen2019-10-238-68/+32
| | | | | | * Don't copy paste the same governor check code multiple times Change-Id: I2258553deb02a5ae149b0a96aca5fe5584f0ea14
* power: Introduce is_schedutil_governorMichael Bestas2019-10-232-0/+6
| | | | Change-Id: Ie3cfd0cb11b368cd9399a6dcea6b6cfa1f4d7916
* power: Remove leftover support for ondemand governorMichael Bestas2019-10-235-61/+0
| | | | Change-Id: Id4c2aa5efa7101535a7311e34529e0b90c7491f1
* power: Remove leftover support for msm-dcvs governorMichael Bestas2019-10-235-17/+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-2332-1158/+920
| | | | | | | * Using AOSP interface .clang-format * Clean Android.mk while we are at it Change-Id: I630f72e3dffb676ca1930e72945e897f62103ada
* power: Add -qti suffix to module nameMichael Bestas2019-10-234-5/+5
| | | | | | * Prevent conflict with other HALs Change-Id: Icf1216410db26c3bb811d7aedde03e6d2f87e3cc
* power: Remove mutex to hintsdianlujitao2019-10-237-52/+0
| | | | | | * No longer needed. Change-Id: I09fc90b4e5399b3f3b8a409edf3f57361da90100
* power: Remove unused arg from power_hint_override/set_interactive_overrideRashed Abdel-Tawab2019-10-2315-28/+24
| | | | Change-Id: If45b59915022b563d4c5c9bf454b02b431a97833
* power: Enable 4+0 core config for display off casesDilip Gudlur2019-10-232-4/+2
| | | | | | | | This change enables 4+0 core config for display off sceanrios and in display off scenario system should go back to default core config. Change-Id: I57795988e7e0f1b2c1e160e2e454549a14bbde50
* power: introduce 8992-specific handlingDilip Gudlur2019-10-232-0/+153
| | | | | | | Creates framework for handling special cases like display off, video encode differently for 8992. Change-Id: I195a96f0787c0d2dc2696c75a6f281774e2345cb
* power: modify return value for display off hint in 8994Dilip Gudlur2019-10-231-1/+1
| | | | | | | This change bypasses execution of deprecated code path in the power.c for dispaly off hint. Change-Id: I3e6f5d2f5a9f1d55015149a0f7abc3c3f1f445e1
* power: Fix to handle min freq changes when CPU cores hotplugged.Nikhil Kumar Kansal2019-10-231-17/+42
| | | | | | | | Finds which CPU cores is online and does following below 1.Gets scaling governor 2.Sets scaling min freq Change-Id: I209a6228294c945e943ff285ac8f38b7f97337d6
* power: Changed the minfreq to 400Mhz for display off scenario.vaibhav bhalla2019-10-232-0/+209
| | | | | | | | 1. Changes to set CPU0 min freq for 8939 target as below: Display off case : set to 400Mhz Display on case : set to 960Mhz. Change-Id: Ie8cf31484e70f83594778c899485910b9ff2578e
* power: Change the Hi-Speed freq to 800Mhz for camcorder casevaibhav bhalla2019-10-232-1/+45
| | | | | | | | Changes to set Hi-Speed freq for 8909 target as below: -Camcorder ON : set to 800Mhz -Camcorder OFF : set to 998.4Mhz. Change-Id: I8e4ca512c137a137fabe7762695e336a3ed37fdd
* power: override encode hint for 8909vaibhav bhalla2019-10-232-0/+68
| | | | | | | Default encode hint was setting hispeed_freq to 1.1GHZ This is not needed for 8909 hence overrode that. Change-Id: I4c3695dbe82d43ebb34732559043b59815f7d49d
* power: Allow devices to write their own platform specific bitsChristopher R. Palmer2019-10-231-0/+6
| | | | | | | | | Using this hook, any device should be able to reuse the majority of the powerhal and fork only power-<platform>.c if they feel that they need the ability to provide more specific tuning of the hints/etc. for their device. Change-Id: I013a3ec3ddccbe6f74f3dacf456cc6e8b3ab3430
* power: Allow device specific hooks for set_interactiveSteve Kondik2019-10-232-0/+13
| | | | | | * Some devices may want to implement custom hooks Change-Id: I9be8023c8134b3c262f27b43a28bec0e14c0fd7f
* power: Refactor TARGET_TAP_TO_WAKE_NODEKeith Mok2019-10-234-0/+44
| | | | | | | | | | | Add TARGET_POWER_SET_FEATURE_LIB, since other devices are not simply writing a 0/1 to a device node. TARGET_TAP_TO_WAKE_NODE is still valid and both TARGET_TAP_TO_WAKE_NODE and TARGET_POWER_SET_FEATURE_LIB are allowed to coexist. (Currently set_feature only has double tap to wake, but it may be extended in future) Change-Id: I5c6204fd38a6fbe48e8aac49843bfa047c4b6436
* power: Add support for tap-to-wake feature controlSteve Kondik2019-10-232-0/+14
| | | | Change-Id: I545902b29f4828c127bc32def6e30b67ce4a3aa7
* power: Use log/log.h instead of utils/Log.hEthan Chen2019-10-2320-21/+19
| | | | Change-Id: I827c7f5ab27548eec8d6e4ee27a72fa883025002
* power: Fix a few compiler warningsPaul Keith2019-10-233-10/+15
| | | | | | * And unify styling a little bit Change-Id: I7f9bb43a534e352fdd7693ff975749864f8addb3
* power: Fix power hal compiler warningsAdrian Salido2019-10-239-25/+21
| | | | | | Bug: 30432975 Test: compile power hal for walleye without warnings Change-Id: I0d90c26462c662690f8a179250000b9a449a109f
* power: Remove powerhintparserMichael Bestas2019-10-234-232/+2
| | | | | | | | * The usage of this code was removed in commit 0c226b7921b421dd24363f15aefef1236aa25287 * powerhint.xml is now read by libqti-perfd Change-Id: I498ad19d0bb43124e4518c5a4f20191a2c122997
* Merge tag 'LA.UM.8.1.r1-09500-sm8150.0' of ↵Michael Bestas2019-10-183-0/+294
|\ | | | | | | | | | | | | | | https://source.codeaurora.org/quic/la/platform/vendor/qcom-opensource/power into lineage-17.0 "LA.UM.8.1.r1-09500-sm8150.0" Change-Id: I709bb17c5fba7e700bb275b398c114f62cde7ed7
| * Merge 8a27eca3b2a87cc478812140c136891285359757 on remote branchLinux Build Service Account2019-09-213-0/+294
|/| | | | | | | Change-Id: Idab188d773b1ec8033df39db3872b6ccaad401e7
| * powerhint: Add hints for 30/60 FPS encodeAnanth Raghavan Subramanian2019-09-091-0/+16
| | | | | | | | Change-Id: I5b897768a51c2cb9c6f6eb127b12c704b5937d73
| * power: Add config and makefilesSumit Gemini2019-09-032-0/+268
| | | | | | | | | | | | Added product makefiles. Moved powerhint XMLs to this project. Change-Id: Icd0d1e46d0d9793197eb2e5fb5b65c06a5858647
| * power: Add powerhint for 480FPS use-caseJay Wang2019-07-161-0/+10
| | | | | | | | | | | | | | | | Add powerhint for video encoding @ 480FPS CRs-Fixed: 2449387 Change-Id: I092c57e2964d5079ed295207b666d98a0b9b306f
* | Merge 52e7331bd7cdbc20582603c706ff5c56f9159401 on remote branchLinux Build Service Account2019-06-1013-82/+641
|\| | | | | | | Change-Id: Ic3ba148a50cffca007d0a2440b659d66b2fb4567
| * Merge "power: Add config and makefiles" into power.lnx.2.0Linux Build Service Account2019-05-304-0/+339
| |\
| | * power: Add config and makefilesAnanth Raghavan Subramanian2019-05-204-0/+339
| | | | | | | | | | | | | | | | | | Added product and board makefiles. Moved powerhint XMLs to this project. Change-Id: I3d36f29f69f09166f84d2e42a6480cb590b04d2d
| * | Merge "power: Introducing PowerHAL binderized service" into power.lnx.2.0Linux Build Service Account2019-05-308-78/+297
| |\ \
| | * | power: Introducing PowerHAL binderized serviceAnanth Raghavan Subramanian2019-01-178-78/+297
| | |/ | | | | | | | | | | | | | | | | | | | | | Moving from the default implementation to a binderized service with no wrapping. Now using 1.2 implementation of the IPower interface. Change-Id: Ibefd916544f51545e6889684a051b2ecc5867fe2
| * / power: Modify definitions of Perf client callsAnanth Raghavan Subramanian2019-05-281-4/+5
| |/ | | | | | | | | | | Now conforms to the exact definition in the shared perf library Change-Id: I6f92140b42800072283c2f3a52e6814fc0f1d5d2