From 4d8b75cd7525d65c85eedd6a27412f5898159707 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Tue, 26 Jan 2021 08:06:17 -0800 Subject: [PATCH] drm/msm/sde: Remove debug print from sde_reg_write() This unused debug print wastes CPU time when writing to registers, resulting in perf top reporting a decent chunk of time spent inside sde_reg_write(). Removing the debug print gets sde_reg_write() off perf top's radar. Signed-off-by: Sultan Alsawaf --- drivers/gpu/drm/msm/sde/sde_hw_util.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/sde/sde_hw_util.c b/drivers/gpu/drm/msm/sde/sde_hw_util.c index 013a44263d92..fe4d4ccfcd30 100755 --- a/drivers/gpu/drm/msm/sde/sde_hw_util.c +++ b/drivers/gpu/drm/msm/sde/sde_hw_util.c @@ -79,10 +79,6 @@ void sde_reg_write(struct sde_hw_blk_reg_map *c, u32 val, const char *name) { - /* don't need to mutex protect this */ - if (c->log_mask & sde_hw_util_log_mask) - SDE_DEBUG_DRIVER("[%s:0x%X] <= 0x%X\n", - name, c->blk_off + reg_off, val); writel_relaxed(val, c->base_off + c->blk_off + reg_off); }