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

Commit e0fe4bde authored by Subhash Jadavani's avatar Subhash Jadavani Committed by Stephen Boyd
Browse files

mmc: core: Attribute the IO wait time properly in mmc_wait_for_req_done()



In mmc_wait_for_req_done() function, change the call wait_for_completion()
to wait_for_compltion_io(). This change makes the kernel account for
wait time as I/O wait and through another configuration, this io wait
is treated as busy which makes the acpu clock to scale up.

Change-Id: Iebdc7b1b22871bf845f10a55e2272816c72d9964
Signed-off-by: default avatarMurali Palnati <palnatim@codeaurora.org>
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent b73c66cc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -433,7 +433,7 @@ static void mmc_wait_for_req_done(struct mmc_host *host,
	struct mmc_command *cmd;

	while (1) {
		wait_for_completion(&mrq->completion);
		wait_for_completion_io(&mrq->completion);

		cmd = mrq->cmd;
		if (!cmd->error || !cmd->retries ||