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

Commit 18d633ff authored by Mohammed Nayeem Ur Rahman's avatar Mohammed Nayeem Ur Rahman
Browse files

msm: adsprpc: legacy devices don't need shared context bank



We are currently using shared context bank for attaching to sensors PD
though context banks are free as we have multiple use-cases (chre,drm)
on sensors PD but legacy devices don't have these use-cases so no need to
restrict to use shared context bank for attaching to sensors PD for legacy
devices.

Change-Id: I4c34da7d9029fd943fe8e40f79d41c1a0f40c380
Acked-by: default avatarChenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: default avatarMohammed Nayeem Ur Rahman <mohara@codeaurora.org>
parent 33b8da6b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3533,6 +3533,7 @@ static int fastrpc_get_info(struct fastrpc_file *fl, uint32_t *info)
static int fastrpc_internal_control(struct fastrpc_file *fl,
					struct fastrpc_ioctl_control *cp)
{
	struct fastrpc_apps *me = &gfa;
	int err = 0;
	int latency;

@@ -3558,6 +3559,7 @@ static int fastrpc_internal_control(struct fastrpc_file *fl,
			pm_qos_update_request(&fl->pm_qos_req, latency);
		break;
	case FASTRPC_CONTROL_SMMU:
		if (!me->legacy)
			fl->sharedcb = cp->smmu.sharedcb;
		break;
	case FASTRPC_CONTROL_KALLOC: