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
This commit is contained in:
parent
53e9bd3b42
commit
63da92e034
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user