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

Commit aaa4081d authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: send notification after power level is changed



LLM requires both pre and post notification when power level is
changed during runtime. This change is to send post notification
after power level is changed.

Change-Id: Icacd8cdb3519cdbc9ccb1222c9bd088fc480f3da
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent 7ede1bd9
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -475,6 +475,16 @@ static int npu_set_power_level(struct npu_device *npu_dev, bool notify_cxlimit)
		}
	}

	if (!ret) {
		ret = npu_host_notify_fw_pwr_state(npu_dev,
			pwr_level_to_set, true);
		if (ret)
			NPU_WARN("notify fw new power level [%d] failed\n",
				pwr_level_to_set);

		ret = 0;
	}

	pwr->active_pwrlevel = pwr_level_to_set;
	return ret;
}