From 63da92e03492c5df601576f0476e9f7fe9af0036 Mon Sep 17 00:00:00 2001 From: Jingxiang Ge Date: Sat, 28 Mar 2020 09:47:42 +0800 Subject: [PATCH] qcacld-3.0: Add dbgid for each runtime put/get This is to enhance statics for runtime put/get, which is to detect if there is mismatch for usage_count. Change-Id: I86441227beec0a9a7b26df8a06f7752ded544f06 CRs-Fixed: 2651628 --- core/hdd/src/wlan_hdd_power.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/hdd/src/wlan_hdd_power.c b/core/hdd/src/wlan_hdd_power.c index 7091e45a9135..7933743669a1 100644 --- a/core/hdd/src/wlan_hdd_power.c +++ b/core/hdd/src/wlan_hdd_power.c @@ -931,11 +931,11 @@ int wlan_hdd_pm_qos_notify(struct notifier_block *nb, unsigned long curr_val, if (!hdd_ctx->runtime_pm_prevented && curr_val != PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE) { - hif_pm_runtime_get_noresume(hif_ctx); + hif_pm_runtime_get_noresume(hif_ctx, RTPM_ID_QOS_NOTIFY); hdd_ctx->runtime_pm_prevented = true; } else if (hdd_ctx->runtime_pm_prevented && curr_val == PM_QOS_CPU_DMA_LAT_DEFAULT_VALUE) { - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_QOS_NOTIFY); hdd_ctx->runtime_pm_prevented = false; } @@ -1784,7 +1784,7 @@ static int _wlan_hdd_cfg80211_resume_wlan(struct wiphy *wiphy) hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); errno = __wlan_hdd_cfg80211_resume_wlan(wiphy); - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_SUSPEND_RESUME); return errno; } @@ -2021,13 +2021,13 @@ static int _wlan_hdd_cfg80211_suspend_wlan(struct wiphy *wiphy, } hif_ctx = cds_get_context(QDF_MODULE_ID_HIF); - errno = hif_pm_runtime_get_sync(hif_ctx); + errno = hif_pm_runtime_get_sync(hif_ctx, RTPM_ID_SUSPEND_RESUME); if (errno) return errno; errno = __wlan_hdd_cfg80211_suspend_wlan(wiphy, wow); if (errno) { - hif_pm_runtime_put(hif_ctx); + hif_pm_runtime_put(hif_ctx, RTPM_ID_SUSPEND_RESUME); return errno; }