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

Commit 19abd387 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: qcom: rpmh: Wakeup only when the wait count is zero" into msm-4.9

parents 5d500e67 948bd820
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -153,11 +153,10 @@ static void rpmh_tx_done(struct mbox_client *cl, void *msg, int r)
	}

	/* Signal the blocking thread we are done */
	if (waitq) {
		atomic_dec(wc);
	if (wc && atomic_dec_and_test(wc))
		if (waitq)
			wake_up(waitq);
}
}

static struct rpmh_req *__find_req(struct rpmh_client *rc, u32 addr)
{