Quellcode durchsuchen

qcacld-3.0: Stop bus bandwidth compute timer during SSR shutdown

Stop bus bandwidth compute timer during SSR shutdown such that
bus bandwidth timer is stopped and bus bandwidth compute work is
flushed cleanly in all the cases.

Change-Id: Ie79ddd1ab13b852fb5d23029c51f05e921f72989
CRs-Fixed: 2307304
Rajeev Kumar vor 6 Jahren
Ursprung
Commit
c27efb6fd1
2 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 1 1
      core/hdd/src/wlan_hdd_main.c
  2. 1 0
      core/hdd/src/wlan_hdd_power.c

+ 1 - 1
core/hdd/src/wlan_hdd_main.c

@@ -7763,7 +7763,7 @@ void hdd_bus_bandwidth_deinit(struct hdd_context *hdd_ctx)
 {
 	hdd_enter();
 
-	hdd_bus_bw_compute_timer_stop(hdd_ctx);
+	QDF_BUG(!hdd_ctx->bus_bw_timer_running);
 
 	qdf_timer_free(&hdd_ctx->bus_bw_timer);
 	qdf_spinlock_destroy(&hdd_ctx->bus_bw_timer_lock);

+ 1 - 0
core/hdd/src/wlan_hdd_power.c

@@ -1200,6 +1200,7 @@ QDF_STATUS hdd_wlan_shutdown(void)
 		return QDF_STATUS_E_FAILURE;
 	}
 
+	hdd_bus_bw_compute_timer_stop(hdd_ctx);
 	policy_mgr_clear_concurrent_session_count(hdd_ctx->hdd_psoc);
 
 	hdd_debug("Invoking packetdump deregistration API");