summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRuchi Kandoi <kandoiruchi@google.com>2014-05-07 02:08:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-07 02:08:26 +0000
commit16437b90bcc891bd1882becfd99221caa2bec2f2 (patch)
treeb946d0223223f54e97a885400c2e3cbeab18a949 /include
parent750d5eadf7f592f277211681c851b6d1e5d72756 (diff)
parent62f67558af73bec1194eb59c188dc6a82015b3f1 (diff)
downloadhardware_libhardware-16437b90bcc891bd1882becfd99221caa2bec2f2.zip
hardware_libhardware-16437b90bcc891bd1882becfd99221caa2bec2f2.tar.gz
hardware_libhardware-16437b90bcc891bd1882becfd99221caa2bec2f2.tar.bz2
Merge "power: Adds a new power hint POWER_HINT_LOW_POWER"
Diffstat (limited to 'include')
-rw-r--r--include/hardware/power.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware/power.h b/include/hardware/power.h
index 89d57ed..dc33705 100644
--- a/include/hardware/power.h
+++ b/include/hardware/power.h
@@ -44,7 +44,8 @@ typedef enum {
* KLP.
*/
POWER_HINT_VIDEO_ENCODE = 0x00000003,
- POWER_HINT_VIDEO_DECODE = 0x00000004
+ POWER_HINT_VIDEO_DECODE = 0x00000004,
+ POWER_HINT_LOW_POWER = 0x00000005
} power_hint_t;
/**
@@ -112,6 +113,13 @@ typedef struct power_module {
* and it may be appropriate to raise speeds of CPU, memory bus,
* etc. The data parameter is unused.
*
+ * POWER_HINT_LOW_POWER
+ *
+ * Low power mode is activated or deactivated. Low power mode
+ * is intended to save battery at the cost of performance. The data
+ * parameter is non-zero when low power mode is activated, and zero
+ * when deactivated.
+ *
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2