diff options
author | Christian Gmeiner <christian.gmeiner@gmail.com> | 2020-08-14 12:05:02 +0300 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2020-09-25 13:02:58 +0300 |
commit | 658690d8ebaa9bab3337f2cc8f895a97f54fb46a (patch) | |
tree | 701b0b053d5671a34f67123786d32653cc4881e6 /drivers/gpu/drm/etnaviv | |
parent | 77dfb36a761b57878389661b5bd05ef7dfe01809 (diff) | |
download | linux-658690d8ebaa9bab3337f2cc8f895a97f54fb46a.tar.xz |
drm/etnaviv: call perf_reg_read(..)
Replace the open coded access pattern with a function call.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_perfmon.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c index 1f0402f7a7de..782732e6ce72 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_perfmon.c @@ -58,8 +58,7 @@ static u32 pipe_perf_reg_read(struct etnaviv_gpu *gpu, clock &= ~(VIVS_HI_CLOCK_CONTROL_DEBUG_PIXEL_PIPE__MASK); clock |= VIVS_HI_CLOCK_CONTROL_DEBUG_PIXEL_PIPE(i); gpu_write(gpu, VIVS_HI_CLOCK_CONTROL, clock); - gpu_write(gpu, domain->profile_config, signal->data); - value += gpu_read(gpu, domain->profile_read); + value += perf_reg_read(gpu, domain, signal); } /* switch back to pixel pipe 0 to prevent GPU hang */ |