Commit Graph

14 Commits

Author SHA1 Message Date
Vince Leung 5c8bcb9b46 power: add input arguments to interaction function
Change the method signature of interaction function
to allow input arguments for the optimizations
requested and the duration.
Add msm8226 and msm8610 specific power files for
interaction power hint override.

Change-Id: Iac6762d2864021d35981fee11496bda39f8f82fe
2013-09-10 14:45:38 -07:00
Vince Leung 391d561530 power: add feature for interaction
Add compile time feature to improve UX when
interaction hint is received in the powerhal.

Change-Id: I987d2fb2d529019931d4787250bc03d21a820c6f
2013-07-16 16:47:00 -07:00
Anurag Singh 186e7e0ebe power: Ignore consecutive display off hints
It is possible, although very unusual, for more
than one display off events to reach the power HAL
without any intervening display on events. In
this case, do not perform any actions. Multiple
consecutive display on events are already handled.

Change-Id: Id7cd51c2fdc804aa7ebb8322a236077b1785f45f
2013-06-08 17:14:54 -07:00
Vince Leung 6af746075f powerhal: add opcode to disable sync on thread migration
Add and use the opcode to disable synchronization
of cores on foreground thread migration.
Synchronization of cores on foreground thread migration
feature is on by default so we will disable
when the display is off and encode/decode hints.

Change-Id: Ib52b894059b030b9a711c98e0dab41793c99276f
2013-05-17 14:05:33 -07:00
Linux Build Service Account fb6a73b2d7 Merge "power: add display off and power collapse enable opcodes." 2013-04-30 01:32:02 -07:00
Vince Leung 735a2f98c5 power: add display off and power collapse enable opcodes.
Display off opcode used to inform PerfLock the display is off.
Power collapse enable opcode allows users to enable power collapse
modes on all cpus.

Change-Id: I5dc01f47c9df0aa70d34bb8519de115e8c12588a
2013-04-23 23:50:54 -07:00
Anurag Singh daa8f718d8 power: introduce 8974-specific handling
When the display turns off, the MSM8974
needs to set ondemand governor's sync_freq
and optimal_freq parameters to values different
from other targets. To accomplish this, override
the handling for set_interactive. Also refactor
power HAL to remove unnecessary macros.

Change-Id: I009ee88886abfb4f8423de3b2d85549fd0e65205
2013-04-22 13:43:38 -07:00
Anurag Singh ffe0b51549 power: Use a constructor for initialization.
Perform initialization (or cleanup) in a special
constructor (or destructor) function that gets
invoked when the power HAL library is loaded
(or unloaded). Remove code that is made redundant
by doing this. Also remove other parts of the code
which are no longer used.

Change-Id: I6a08c998c32fb57d0c7975bc814f7d87cd1104d1
2013-03-27 19:20:30 -07:00
Duy Truong 0c0744e022 Update copyright to The Linux Foundation
Change-Id: Id084b09bf3a083ea5c0389900bbeb5ef149b3108
2013-02-10 06:35:11 -08:00
Anurag Singh da28cce5a9 power: Use macros instead of string literals.
Replace multiple instances of string literals with
macros so as to minimize the risk of typos. Also fix
a check for max/min DCVS slack node values.

Change-Id: I9fa80a41dffba88d144d100d146726f2c18e7540
2013-01-15 17:30:32 -08:00
Anurag Singh 1306363584 power: Change ondemand sampling rate when dipslay state changes.
When the display turns off, set the ondemand sampling rate
to 500ms. Restore it to whatever it was when it turns back on.

Change-Id: I5cab3cbb993fae1aafb8323a3b47d0569badb9ee
2012-11-09 17:53:00 -08:00
Anurag Singh 79ab543c4c power: Process video decode and screen off hints.
Process video decode hints and display-off hints
in the power HAL. Also move to using the perflock
API to request system-level parameter changes.

Change-Id: I42e33d6d22016b02d85572a69fee64aadf36da58
2012-10-11 18:56:35 -07:00
Anurag Singh 7accfc5c5a power: Change MP/DCVS slack nodes with display state.
Set values on DCVS and mpdecision slack nodes when
display state changes.

Change-Id: Ic39c3d3f209b6a7daee77fce180d45a83a0871d2
2012-10-09 17:17:48 -07:00
Anurag Singh 2d5b93ca9f common: Add platform-specific power libraries.
Add platform-specific power HAL libraries
to the built product.

Change-Id: Ie6e8d3af3f5f83618bc66ccc2f420d209c53ce12
2012-09-11 09:57:00 -07:00