summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2014-05-18 23:55:23 -0700
committerBruno Martins <bgcngm@gmail.com>2018-09-06 12:13:57 +0200
commitab7bde1b685fe5e587d72a43c67440e20ad8ced3 (patch)
tree34f5fb9489069a8bea4ce81f979bb11dfd072a4c
parent0a729c78b8cd5dab7e9add4bcb0712f3fe3b7bf9 (diff)
downloadandroid_hardware_qcom_power-ab7bde1b685fe5e587d72a43c67440e20ad8ced3.tar.gz
android_hardware_qcom_power-ab7bde1b685fe5e587d72a43c67440e20ad8ced3.tar.bz2
android_hardware_qcom_power-ab7bde1b685fe5e587d72a43c67440e20ad8ced3.zip
power: 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
-rw-r--r--power-common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/power-common.h b/power-common.h
index 161e0bb..e33f7c2 100644
--- a/power-common.h
+++ b/power-common.h
@@ -27,6 +27,9 @@
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+
+#include <hardware/power.h>
+
#define NODE_MAX (64)
#define SCALING_GOVERNOR_PATH "/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor"
@@ -55,3 +58,6 @@ enum {
};
#define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
+
+// Custom Lineage hints
+const static power_hint_t POWER_HINT_SET_PROFILE = (power_hint_t)0x00000111;