Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 066a2536 authored by Suman Tatiraju's avatar Suman Tatiraju
Browse files

msm: kgsl: Add kernel API support for limits mitigation



Add a kernel interface to limit GPU power level during
high-risk low voltage or high current conditions of the
battery.

kgsl_pwr_limits_add is called by every client to add a node
to the limits list. The client can then call other APIs such as
kgsl_pwr_limits_set_freq or kgsl_pwr_limits_set_default to set limits.
Once the client is done with limits it should delete the limits node
by calling kgsl_pwr_limits_del.

Limits can be set from both kernel APIs and sysfs nodes.
Make sure all votes are considered before setting the final limits.

Change-Id: I826e7265f67051aecb6f6e191e338930401a6f8b
Signed-off-by: default avatarSuman Tatiraju <sumant@codeaurora.org>
parent 6721e9e5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment