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

Commit c4a2ce0f authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: npu: send notification after power level is changed"

parents f9d3b8a3 aaa4081d
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -514,6 +514,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;
}