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>
This commit is contained in:
committed by
Lucas Stach
parent
77dfb36a76
commit
658690d8eb
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user