Commit Graph

6 Commits

Author SHA1 Message Date
Wei Wang
11cb44a54d wahoo: power: change CPU min freq to 0 in config
cpufreq driver will pick up lowest freq if 0 is written.

Bug: 75018682
Test: Boot
Change-Id: I458fdc199908b334023c30617b77cc558827424e
2018-03-15 15:54:42 -07:00
Wei Wang
1a56e91aee Power: fix timeout in powerhint.json
Test: boot
Change-Id: I4a93e4abf279291ed6a09c1c0944e56548c426fb
2018-01-15 19:40:05 -08:00
Wei Wang
fadd4b28e0 wahoo: power: Reorder cpu max node value priority
Add CPUBigClusterMaxFreq to Launch and Camera hints with higher priority
than Video Encode's hint value. In this case, Video Encode hint doesn't
need to be canceled during those hints.

Bug: 71869406
Test: Build
Change-Id: I53d17d32a8ff77257ba44cef7b8be2911b20b85f
2018-01-11 23:44:57 -08:00
Wei Wang
763e14d06a wahoo: power: set cpufreq max first
There is a small chance that canceling Encode hint and enabling launch
at the same time. In this case, CPU max is capped so it need to be
updated first.

This CL will make PowerHAL updates max node first, in favor of boosting
hints, such as launch, camera shot and etc. When these boost hints end,
the performance limiting (power conserving) hint such as encode hint
could fail to set at the beginning but will succeed in the second try in
500ms.

Also change the rc file to let init do not restart PowerHAL when
framework died and there is no active long-lasting hint.

Bug: 67648152
Bug: 62041945
Test: launch camera
Test: kill cameraHAL, powerHAL, system-server
Change-Id: I4a9d8d395dea9f42cf6659c86635852f332f7617
2018-01-09 14:32:22 -08:00
Wei Wang
4a56f1b85a wahoo: power: change node owner early to reduce permission denial log spam
PowerHAL (started in class hal) will try to reset nodes to their initial values,
however the node permission is granted only upon boot_complete which leads some
permission log spam. This CL is to address the logspam.

Test: boot and do powerhint
Bug: 62041945
Change-Id: I35ad8dfe23f35c829f50479ca951445afeb46b87
2018-01-04 22:30:07 -08:00
Wei Wang
d7f901b58d wahoo: power: switch to libperfmgr for powerhint
Test: boot and do powerhint
Bug: 62041945
Change-Id: I7de1d2bf377fb46162171a084fca3413b1067d3b
2018-01-04 13:51:18 -08:00