|
@@ -1340,19 +1340,30 @@ static void get_htc_send_packets(HTC_TARGET *target,
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
+ hif_pm_runtime_update_stats(
|
|
|
+ target->hif_dev, rtpm_dbgid,
|
|
|
+ HIF_PM_HTC_STATS_GET_HTT_FETCH_PKTS);
|
|
|
}
|
|
|
|
|
|
ret = hif_system_pm_state_check(target->hif_dev);
|
|
|
if (ret) {
|
|
|
- if (do_pm_get)
|
|
|
+ if (do_pm_get) {
|
|
|
hif_pm_runtime_put(target->hif_dev, rtpm_dbgid);
|
|
|
+ hif_pm_runtime_update_stats(
|
|
|
+ target->hif_dev, rtpm_dbgid,
|
|
|
+ HIF_PM_HTC_STATS_PUT_HTT_FETCH_PKTS);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
pPacket = htc_packet_dequeue(tx_queue);
|
|
|
if (!pPacket) {
|
|
|
- if (do_pm_get)
|
|
|
+ if (do_pm_get) {
|
|
|
hif_pm_runtime_put(target->hif_dev, rtpm_dbgid);
|
|
|
+ hif_pm_runtime_update_stats(
|
|
|
+ target->hif_dev, rtpm_dbgid,
|
|
|
+ HIF_PM_HTC_STATS_PUT_HTT_FETCH_PKTS);
|
|
|
+ }
|
|
|
break;
|
|
|
}
|
|
|
|
|
@@ -2577,6 +2588,10 @@ void htc_kick_queues(void *context)
|
|
|
if (hif_pm_runtime_get_sync(target->hif_dev, RTPM_ID_HTC))
|
|
|
return;
|
|
|
|
|
|
+ hif_pm_runtime_update_stats(
|
|
|
+ target->hif_dev, RTPM_ID_HTC,
|
|
|
+ HIF_PM_HTC_STATS_GET_HTC_KICK_QUEUES);
|
|
|
+
|
|
|
for (i = 0; i < ENDPOINT_MAX; i++) {
|
|
|
endpoint = &target->endpoint[i];
|
|
|
|
|
@@ -2592,7 +2607,12 @@ void htc_kick_queues(void *context)
|
|
|
|
|
|
hif_fastpath_resume(target->hif_dev);
|
|
|
|
|
|
- hif_pm_runtime_put(target->hif_dev, RTPM_ID_HTC);
|
|
|
+ if (hif_pm_runtime_put(target->hif_dev, RTPM_ID_HTC))
|
|
|
+ return;
|
|
|
+
|
|
|
+ hif_pm_runtime_update_stats(
|
|
|
+ target->hif_dev, RTPM_ID_HTC,
|
|
|
+ HIF_PM_HTC_STATS_PUT_HTC_KICK_QUEUES);
|
|
|
}
|
|
|
#endif
|
|
|
|