summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <steve@cyngn.com>2013-11-01 20:28:10 +0000
committerSteve Kondik <steve@cyngn.com>2015-10-12 13:21:03 -1000
commit241ba0a0a471de65d54f9699068e9759c09dd9a8 (patch)
tree92390051214068e31f54e3e24da6131caf3fe5b2
parent45922f06fc68e7e27bee2eea777447c887a35f52 (diff)
downloadhardware_libhardware-241ba0a0a471de65d54f9699068e9759c09dd9a8.zip
hardware_libhardware-241ba0a0a471de65d54f9699068e9759c09dd9a8.tar.gz
hardware_libhardware-241ba0a0a471de65d54f9699068e9759c09dd9a8.tar.bz2
power: Add new power hints
* New hint to support CPU boosting with a duration. Change-Id: I79b5a33814f2dbeaa033c950264d430876505175 libhardware: Add audio power hint Change-Id: I5b03cc060356da23b6941c5937ef217c70dbf6dd libhardware: Add power hint to set profile * A PowerHAL can implement support for this hint to receive power profile changes from the framework. Change-Id: Ie1e9e3b827c731cf5a817a0491677e3451fe8678 libhardware: Add POWER_HINT_LAUNCH_BOOST for PowerHAL Change-Id: I9f2387ad273a376da77f9360f1e620f4cd9f861c
-rw-r--r--include/hardware/power.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h
index af7799e..c0fcba1 100644
--- a/include/hardware/power.h
+++ b/include/hardware/power.h
@@ -46,7 +46,13 @@ typedef enum {
*/
POWER_HINT_VIDEO_ENCODE = 0x00000003,
POWER_HINT_VIDEO_DECODE = 0x00000004,
- POWER_HINT_LOW_POWER = 0x00000005
+ POWER_HINT_LOW_POWER = 0x00000005,
+
+ POWER_HINT_CPU_BOOST = 0x00000010,
+ POWER_HINT_LAUNCH_BOOST = 0x00000011,
+ POWER_HINT_AUDIO = 0x00000020,
+ POWER_HINT_SET_PROFILE = 0x00000030
+
} power_hint_t;
typedef enum {
@@ -125,6 +131,12 @@ typedef struct power_module {
* parameter is non-zero when low power mode is activated, and zero
* when deactivated.
*
+ * POWER_HINT_CPU_BOOST
+ *
+ * An operation is happening where it would be ideal for the CPU to
+ * be boosted for a specific duration. The data parameter is an
+ * integer value of the boost duration in microseconds.
+ *
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2