qcacld-3.0: Move IPA set perf level API to IPA component

IPA module has been moved to CLD component under the converged
driver model. Move the legacy IPA set perf level APIs to the IPA
component.

Change-Id: Idbbab9cc6885b6acf1cd40d432a236f0629c8dff
CRs-Fixed: 2177925
This commit is contained in:
Sravan Kumar Kairam
2018-03-12 19:09:45 +05:30
committed by nshrivas
parent 333c809f91
commit b9a3f3dedc
6 changed files with 145 additions and 0 deletions

View File

@@ -67,6 +67,17 @@ void ucfg_ipa_set_dp_handle(struct wlan_objmgr_psoc *psoc,
void ucfg_ipa_set_txrx_handle(struct wlan_objmgr_psoc *psoc,
void *txrx_handle);
/**
* ucfg_ipa_set_perf_level() - Set IPA perf level
* @pdev: Pdev obj handle
* @tx_packets: Number of packets transmitted in the last sample period
* @rx_packets: Number of packets received in the last sample period
*
* Return: QDF_STATUS_SUCCESS on success
*/
QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
uint64_t tx_packets, uint64_t rx_packets);
#else
static inline bool ucfg_ipa_is_present(void)
@@ -91,5 +102,12 @@ QDF_STATUS ucfg_ipa_set_txrx_handle(struct wlan_objmgr_psoc *psoc,
{
return QDF_STATUS_SUCCESS;
}
static inline
QDF_STATUS ucfg_ipa_set_perf_level(struct wlan_objmgr_pdev *pdev,
uint64_t tx_packets, uint64_t rx_packets)
{
return QDF_STATUS_SUCCESS;
}
#endif /* IPA_OFFLOAD */
#endif /* _WLAN_IPA_UCFG_API_H_ */