drm/msm: Add devfreq support for the GPU
authorJordan Crouse <jcrouse@codeaurora.org>
Wed, 10 Jan 2018 17:41:54 +0000 (10:41 -0700)
committerRob Clark <robdclark@gmail.com>
Wed, 10 Jan 2018 19:30:03 +0000 (14:30 -0500)
commitf91c14ab448af4d9d57350301dd9d6b6a7b6128a
tree4f66782c3d2ee03e302557d40a55499fed4bdc72
parentc09513cfebd8d936a7aed3c0302104fb47a4a03a
drm/msm: Add devfreq support for the GPU

Add support for devfreq to dynamically control the GPU frequency.
By default try to use the 'simple_ondemand' governor which can
adjust the frequency based on GPU load.

v2: Fix __aeabi_uldivmod issue from the 0 day bot and use
devfreq_recommended_opp() as suggested by Rob.

Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/adreno/adreno_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h