From 62f67558af73bec1194eb59c188dc6a82015b3f1 Mon Sep 17 00:00:00 2001 From: Ruchi Kandoi Date: Fri, 2 May 2014 13:52:51 -0700 Subject: [PATCH] power: Adds a new power hint POWER_HINT_LOW_POWER Change-Id: Ib0adda9bce0719eb47d41dc7c77f4bd9576311a9 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 89d57edb..dc33705b 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