]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: re-factor devfreq code
authorSharat Masetty <smasetty@codeaurora.org>
Thu, 4 Oct 2018 09:41:42 +0000 (15:11 +0530)
committerRob Clark <robdclark@gmail.com>
Thu, 4 Oct 2018 13:14:20 +0000 (09:14 -0400)
commit2da14603e6860361376da7dbf5f1ac5fa0196a39
tree90ee21de75988516758d4d3b0be388833dc90df9
parentba29f651be8c017c6d2c8412e1208bdeeb5ae744
drm/msm: re-factor devfreq code

The devfreq framework requires the drivers to provide busy time estimations.
The GPU driver relies on the hardware performance counteres for the busy time
estimations, but different hardware revisions have counters which can be
sourced from different clocks. So the busy time estimation will be target
dependent.  Additionally on targets where the clocks are completely controlled
by the on chip microcontroller, fetching and setting the current GPU frequency
will be different. This patch aims to embrace these differences by re-factoring
the devfreq code a bit.

Signed-off-by: Sharat Masetty <smasetty@codeaurora.org>
Signed-off-by: Rob Clark <robdclark@gmail.com>
drivers/gpu/drm/msm/adreno/a5xx_gpu.c
drivers/gpu/drm/msm/msm_gpu.c
drivers/gpu/drm/msm/msm_gpu.h