drm/msm/sde: Remove register write debug logging
Writing to registers is frequent enough that there is a measurably significant portion of CPU time spent on checking the debug mask for whether to log. Remove the check and logging call altogether to eliminate the overhead. Change-Id: Iea73c5cd106edc96659fa1a1591be6bc8cb4bf88
This commit is contained in:
@@ -73,13 +73,7 @@ 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);
|
||||
SDE_EVT32_REGWRITE(c->blk_off + reg_off, val, GET_REG_BLK_ID(c));
|
||||
writel_relaxed(val, c->base_off + c->blk_off + reg_off);
|
||||
SDE_REG_LOG(GET_REG_BLK_ID(c), val, c->blk_off + reg_off);
|
||||
}
|
||||
|
||||
int sde_reg_read(struct sde_hw_blk_reg_map *c, u32 reg_off)
|
||||
|
||||
Reference in New Issue
Block a user