qcacld-3.0: Use HIF runtime PM APIs from HDD
CLD driver should always use HIF runtime PM wrapper APIs so that the stats can be recorded properly. Change-Id: I0cd9ac363c3d2dacd326d53e3f5d09887e7f3ed0 CRs-fixed: 2666953
This commit is contained in:
@@ -3471,6 +3471,7 @@ static int hdd_wlan_register_pm_qos_notifier(struct hdd_context *hdd_ctx)
|
|||||||
*/
|
*/
|
||||||
static void hdd_wlan_unregister_pm_qos_notifier(struct hdd_context *hdd_ctx)
|
static void hdd_wlan_unregister_pm_qos_notifier(struct hdd_context *hdd_ctx)
|
||||||
{
|
{
|
||||||
|
void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (hdd_ctx->config->runtime_pm != hdd_runtime_pm_dynamic) {
|
if (hdd_ctx->config->runtime_pm != hdd_runtime_pm_dynamic) {
|
||||||
@@ -3486,7 +3487,7 @@ static void hdd_wlan_unregister_pm_qos_notifier(struct hdd_context *hdd_ctx)
|
|||||||
qdf_spin_lock_irqsave(&hdd_ctx->pm_qos_lock);
|
qdf_spin_lock_irqsave(&hdd_ctx->pm_qos_lock);
|
||||||
|
|
||||||
if (hdd_ctx->runtime_pm_prevented) {
|
if (hdd_ctx->runtime_pm_prevented) {
|
||||||
pm_runtime_put_noidle(hdd_ctx->parent_dev);
|
hif_pm_runtime_put_noidle(hif_ctx, RTPM_ID_QOS_NOTIFY);
|
||||||
hdd_ctx->runtime_pm_prevented = false;
|
hdd_ctx->runtime_pm_prevented = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user