diff options
| author | Nirav Shah <nnshah@qti.qualcomm.com> | 2014-08-05 13:40:28 +0530 |
|---|---|---|
| committer | Akash Patel <c_akashp@qca.qualcomm.com> | 2014-08-09 00:20:01 -0700 |
| commit | c19030140d9a33a61334da5b6a65f37188eb7718 (patch) | |
| tree | 043da07b1706cecb7b7bc9d60bef5bdcd8314c0e | |
| parent | 5bb275fe2d6299d56cde15ceb9f5705453101791 (diff) | |
qcacld: Simulate thermal mitigation level in host
Do not set actual thermal level to FW in setTmLevel
command to simulate thermal mitigation level in host.
setTmLevel command will set thermal level in host
so that host behaves as if temp is increased and
starts throttling data as per level set by user.
Change-Id: I4dcecfef3071cd7bffc81371c981daa47cea6635
CRs-Fixed: 704546
| -rw-r--r-- | CORE/SERVICES/WMA/wma.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/CORE/SERVICES/WMA/wma.c b/CORE/SERVICES/WMA/wma.c index 088dc7d716f5..82b41fe2e1e6 100644 --- a/CORE/SERVICES/WMA/wma.c +++ b/CORE/SERVICES/WMA/wma.c @@ -19483,7 +19483,6 @@ VOS_STATUS wma_process_init_thermal_info(tp_wma_handle wma, VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, u_int8_t *pThermalLevel) { - t_thermal_cmd_params thermal_params; u_int8_t thermal_level; ol_txrx_pdev_handle curr_pdev; @@ -19501,7 +19500,7 @@ VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, return VOS_STATUS_E_FAILURE; } - WMA_LOGD("TM set level %d", thermal_level); + WMA_LOGE("TM set level %d", thermal_level); /* Check if thermal mitigation is enabled */ if (!wma->thermal_mgmt_info.thermalMgmtEnabled) { @@ -19524,20 +19523,6 @@ VOS_STATUS wma_process_set_thermal_level(tp_wma_handle wma, ol_tx_throttle_set_level(curr_pdev, thermal_level); - /*set the thermal level in the firmware*/ - /* Get the temperature thresholds to set in firmware */ - thermal_params.minTemp = - wma->thermal_mgmt_info.thermalLevels[thermal_level].minTempThreshold; - thermal_params.maxTemp = - wma->thermal_mgmt_info.thermalLevels[thermal_level].maxTempThreshold; - thermal_params.thermalEnable = - wma->thermal_mgmt_info.thermalMgmtEnabled; - - if (VOS_STATUS_SUCCESS != wma_set_thermal_mgmt(wma, thermal_params)) { - WMA_LOGE("Could not send thermal mgmt command to the firmware!"); - return VOS_STATUS_E_FAILURE; - } - return VOS_STATUS_SUCCESS; } |
