diff options
author | Rob Clark <robdclark@chromium.org> | 2020-09-01 18:41:54 +0300 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-09-10 01:25:53 +0300 |
commit | 74c0a69cc5bee0eb1f1cf740f7480095c4a94fe7 (patch) | |
tree | d52f1a80226a22c3c5d575d9171ebd2fc4609c0d /drivers/gpu/drm/msm/msm_gpu.c | |
parent | 38c2fa7ae2f25a561a33ac1d0680a92e293c65a5 (diff) | |
download | linux-74c0a69cc5bee0eb1f1cf740f7480095c4a94fe7.tar.xz |
drm/msm/gpu: Add GPU freq_change traces
Technically the GMU specific one is a bit redundant, but it was useful
to track down a bug.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Jordan Crouse <jcrouse@codeaurora.org>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/msm_gpu.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/msm/msm_gpu.c b/drivers/gpu/drm/msm/msm_gpu.c index 57ddc9438351..cec6ec1d3aa7 100644 --- a/drivers/gpu/drm/msm/msm_gpu.c +++ b/drivers/gpu/drm/msm/msm_gpu.c @@ -32,6 +32,8 @@ static int msm_devfreq_target(struct device *dev, unsigned long *freq, if (IS_ERR(opp)) return PTR_ERR(opp); + trace_msm_gpu_freq_change(dev_pm_opp_get_freq(opp)); + if (gpu->funcs->gpu_set_freq) gpu->funcs->gpu_set_freq(gpu, opp); else |