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

Commit b9369793 authored by Eric Holmberg's avatar Eric Holmberg Committed by Stephen Boyd
Browse files

msm: smsm: Use interrupt mask for local SMSM notifications



Only trigger SMSM callback processing for the local processor if
callbacks have been registered.

Without this fix, excessive SMSM bit toggles may overflow the SMSM
snapshot queue.

Change-Id: Ieeb3e62f50915807eae92ac0762b2af5ac8a8438
CRs-Fixed: 378402
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
Signed-off-by: default avatarAngshuman Sarkar <angshuman@codeaurora.org>
parent ce66c2e2
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -558,8 +558,12 @@ static void notify_other_smsm(uint32_t smsm_entry, uint32_t notify_mask)
	 * on DEM-based targets.  Grabbing a wakelock in this case will
	 * abort the power-down sequencing.
	 */
	if (smsm_info.intr_mask &&
	    (__raw_readl(SMSM_INTR_MASK_ADDR(smsm_entry, SMSM_APPS))
				& notify_mask)) {
		smsm_cb_snapshot(0);
	}
}

void smd_diag(void)
{