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 <sultan@kerneltoast.com>
fourteen
Sultan Alsawaf 4 years ago committed by Jenna
parent abf177d5d3
commit 4d8b75cd75
  1. 4
      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);
}

Loading…
Cancel
Save