power: Adds a new power hint POWER_HINT_VR_MODE
Adds a POWER_HINT_VR_MODE which is used to enable/disable VR mode. This
mode guarantees minimum performance as long as the device can sustain.
Bug: 27659731
Change-Id: Ia6701299cacb5201921f8a517ec78ed4012b9455
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
diff --git a/include/hardware/power.h b/include/hardware/power.h
index 29ef4dc..cc6f5b9 100644
--- a/include/hardware/power.h
+++ b/include/hardware/power.h
@@ -48,7 +48,8 @@
POWER_HINT_VIDEO_ENCODE = 0x00000003,
POWER_HINT_VIDEO_DECODE = 0x00000004,
POWER_HINT_LOW_POWER = 0x00000005,
- POWER_HINT_SUSTAINED_PERFORMANCE = 0x00000006
+ POWER_HINT_SUSTAINED_PERFORMANCE = 0x00000006,
+ POWER_HINT_VR_MODE = 0x00000007
} power_hint_t;
typedef enum {
@@ -136,6 +137,13 @@
* non-zero when sustained performance mode is activated, and zero
* when deactivated.
*
+ * POWER_HINT_VR_MODE
+ *
+ * VR Mode is activated or deactivated. VR mode is intended to
+ * provide minimum guarantee for performance for the amount of time the
+ * device can sustain it. The data parameter is non-zero when the mode
+ * is activated and zero when deactivated.
+ *
* A particular platform may choose to ignore any hint.
*
* availability: version 0.2