Sfoglia il codice sorgente

qcacmn: Add TLV support for thermal throttling

1. Add multi radio support for thermal throttling
2. Add TLV WMI support for thermal throttling

Change-Id: I2cdbf9a4acdd9346c0fe3dd24c510885cc8fef8e
CRs-Fixed: 2041264
Om Prakash Tripathi 8 anni fa
parent
commit
2f54fbb7da
3 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 1 1
      wmi_unified_api.h
  2. 1 0
      wmi_unified_param.h
  3. 1 1
      wmi_unified_priv.h

+ 1 - 1
wmi_unified_api.h

@@ -1318,7 +1318,7 @@ QDF_STATUS wmi_extract_chan_stats(void *wmi_hdl, void *evt_buf,
 		uint32_t index, wmi_host_chan_stats *chan_stats);
 
 QDF_STATUS wmi_extract_thermal_stats(void *wmi_hdl, void *evt_buf,
-		uint32_t *temp, uint32_t *level);
+		uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
 
 QDF_STATUS wmi_extract_thermal_level_stats(void *wmi_hdl, void *evt_buf,
 		uint8_t idx, uint32_t *levelcount, uint32_t *dccount);

+ 1 - 0
wmi_unified_param.h

@@ -3478,6 +3478,7 @@ typedef struct {
  * @tt_level_config: TT level config params
  */
 struct thermal_mitigation_params {
+	uint32_t pdev_id;
 	uint32_t enable;
 	uint32_t dc;
 	uint32_t dc_per_event;

+ 1 - 1
wmi_unified_priv.h

@@ -1186,7 +1186,7 @@ QDF_STATUS (*extract_chan_stats)(wmi_unified_t wmi_handle, void *evt_buf,
 			 uint32_t index, wmi_host_chan_stats *chan_stats);
 
 QDF_STATUS (*extract_thermal_stats)(wmi_unified_t wmi_handle, void *evt_buf,
-	uint32_t *temp, uint32_t *level);
+	uint32_t *temp, uint32_t *level, uint32_t *pdev_id);
 
 QDF_STATUS (*extract_thermal_level_stats)(wmi_unified_t wmi_handle,
 		void *evt_buf, uint8_t idx, uint32_t *levelcount,