From 241ba0a0a471de65d54f9699068e9759c09dd9a8 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Fri, 1 Nov 2013 20:28:10 +0000 Subject: 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 --- include/hardware/power.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.1