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

Commit fe102e14 authored by Harsh Shah's avatar Harsh Shah
Browse files

msm: camera: util: Remove logk from read and write



The read and write with logk involves another memory
barrier, which can be a performance hit. Change the
read and write to no_log to avoid this.

Change-Id: I8474f7423db78e1f323d4ff2919c0a43cfd7cd45
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent 11af628b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ int cam_io_w(uint32_t data, void __iomem *addr)
		return -EINVAL;

	CAM_DBG(CAM_UTIL, "0x%pK %08x", addr, data);
	writel_relaxed(data, addr);
	writel_relaxed_no_log(data, addr);

	return 0;
}
@@ -35,7 +35,7 @@ int cam_io_w_mb(uint32_t data, void __iomem *addr)
	CAM_DBG(CAM_UTIL, "0x%pK %08x", addr, data);
	/* Ensure previous writes are done */
	wmb();
	writel_relaxed(data, addr);
	writel_relaxed_no_log(data, addr);

	return 0;
}