diff options
author | Rob Clark <robdclark@chromium.org> | 2022-11-14 11:30:40 -0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2022-11-17 10:39:12 -0800 |
commit | cade05b2a88558847984287dd389fae0c7de31d6 (patch) | |
tree | 85e8eced8ef9834e0113ae250ac9874d5206c863 /drivers/gpu/drm/msm/adreno/a4xx_gpu.c | |
parent | e8b8feb5cdae23104b32e3ccfb1dc7ebe4a6c361 (diff) | |
download | linux-stable-cade05b2a88558847984287dd389fae0c7de31d6.tar.gz linux-stable-cade05b2a88558847984287dd389fae0c7de31d6.tar.bz2 linux-stable-cade05b2a88558847984287dd389fae0c7de31d6.zip |
drm/msm/adreno: Simplify read64/write64 helpers
The _HI reg is always following the _LO reg, so no need to pass these
offsets seprately.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/511581/
Link: https://lore.kernel.org/r/20221114193049.1533391-2-robdclark@gmail.com
Diffstat (limited to 'drivers/gpu/drm/msm/adreno/a4xx_gpu.c')
-rw-r--r-- | drivers/gpu/drm/msm/adreno/a4xx_gpu.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/adreno/a4xx_gpu.c b/drivers/gpu/drm/msm/adreno/a4xx_gpu.c index 7cb8d9849c07..a10feb8a4194 100644 --- a/drivers/gpu/drm/msm/adreno/a4xx_gpu.c +++ b/drivers/gpu/drm/msm/adreno/a4xx_gpu.c @@ -606,8 +606,7 @@ static int a4xx_pm_suspend(struct msm_gpu *gpu) { static int a4xx_get_timestamp(struct msm_gpu *gpu, uint64_t *value) { - *value = gpu_read64(gpu, REG_A4XX_RBBM_PERFCTR_CP_0_LO, - REG_A4XX_RBBM_PERFCTR_CP_0_HI); + *value = gpu_read64(gpu, REG_A4XX_RBBM_PERFCTR_CP_0_LO); return 0; } |