Commit 8f3e2d2c authored by Kohji Okuno's avatar Kohji Okuno Committed by Shawn Guo
Browse files

ARM: imx6: cpuidle: omit the unnecessary unmask of GINT



In imx6_set_lpm, we only need to unmask GINT when not WAIT_CLOCKED,
so add a check condition.

Signed-off-by: default avatarPeng Fan <peng.fan@nxp.com>
Signed-off-by: default avatarKohji Okuno <okuno.kohji@jp.panasonic.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 9e98c678
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -354,8 +354,10 @@ int imx6_set_lpm(enum mxc_cpu_pwr_mode mode)
	 *
	 * Note that IRQ #32 is GIC SPI #0.
	 */
	if (mode != WAIT_CLOCKED)
		imx_gpc_hwirq_unmask(0);
	writel_relaxed(val, ccm_base + CLPCR);
	if (mode != WAIT_CLOCKED)
		imx_gpc_hwirq_mask(0);

	return 0;