PM / devfreq: bimc-bwmon: Optimize some debug messages
A device register is read and printed using pr_debug. Register reads can be slow. So, refactor the code such that the register read is also compiled out if the pr_debug is compiled out. Change-Id: I4de5ab1f2133e19d6ce0b3cb4547b815526c7abd Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
This commit is contained in:
parent
75ec9ed0ef
commit
decfc3fe4a
1 changed files with 4 additions and 4 deletions
|
@ -118,12 +118,12 @@ static void mon_irq_disable(struct bwmon *m)
|
|||
|
||||
static unsigned int mon_irq_status(struct bwmon *m)
|
||||
{
|
||||
u32 mval, gval;
|
||||
u32 mval;
|
||||
|
||||
mval = readl_relaxed(MON_INT_STATUS(m)),
|
||||
gval = readl_relaxed(GLB_INT_STATUS(m));
|
||||
mval = readl_relaxed(MON_INT_STATUS(m));
|
||||
|
||||
dev_dbg(m->dev, "IRQ status p:%x, g:%x\n", mval, gval);
|
||||
dev_dbg(m->dev, "IRQ status p:%x, g:%x\n", mval,
|
||||
readl_relaxed(GLB_INT_STATUS(m)));
|
||||
|
||||
return mval;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue