Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6c5d9c98 authored by Saravana Kannan's avatar Saravana Kannan Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarSaravana Kannan <skannan@codeaurora.org>
parent 954fed21
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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;
}