From 403bc14825b13679666662169a76bc846b9408b0 Mon Sep 17 00:00:00 2001 From: Ruchi Kandoi Date: Wed, 9 Mar 2016 15:16:30 -0800 Subject: [PATCH] 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 --- include/hardware/power.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/hardware/power.h b/include/hardware/power.h index 29ef4dcd..cc6f5b93 100644 --- a/include/hardware/power.h +++ b/include/hardware/power.h @@ -48,7 +48,8 @@ typedef enum { 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 @@ typedef struct power_module { * 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