qcacld-3.0: Don't call IPA set perf level for unified WDI IPA

For unified WDI IPA rm resource manager is not initialized. Do not
call set perf level for ipa rm resources.

Change-Id: Icf9e50b4cbe8e3d1eeedd9428d48e1889339fe13
CRs-Fixed: 2210736
This commit is contained in:
Sravan Kumar Kairam 2018-03-22 12:35:37 +05:30 • committed by Gerrit - the friendly Code Review server
commit c056d9924f
2 changed files with 28 additions and 20 deletions

View file

@ -134,17 +134,6 @@ QDF_STATUS wlan_ipa_uc_enable_pipes(struct wlan_ipa_priv *ipa_ctx);
*/
QDF_STATUS wlan_ipa_uc_disable_pipes(struct wlan_ipa_priv *ipa_ctx);
/**
* wlan_ipa_set_perf_level() - Set IPA performance level
* @ipa_ctx: IPA context
* @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
*/
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
uint64_t tx_packets, uint64_t rx_packets);
/**
* wlan_ipa_get_iface() - Get IPA interface
* @ipa_ctx: IPA context
@ -156,6 +145,17 @@ struct wlan_ipa_iface_context
*wlan_ipa_get_iface(struct wlan_ipa_priv *ipa_ctx, uint8_t mode);
#ifndef CONFIG_IPA_WDI_UNIFIED_API
/**
* wlan_ipa_set_perf_level() - Set IPA performance level
* @ipa_ctx: IPA context
* @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
*/
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
uint64_t tx_packets, uint64_t rx_packets);
/**
* wlan_ipa_wdi_rm_request_resource() - IPA WDI request resource
* @ipa_ctx: IPA context
@ -220,6 +220,13 @@ void wlan_ipa_wdi_destroy_rm(struct wlan_ipa_priv *ipa_ctx);
#else /* CONFIG_IPA_WDI_UNIFIED_API */
static inline
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
uint64_t tx_packets, uint64_t rx_packets)
{
return QDF_STATUS_SUCCESS;
}
static inline int wlan_ipa_wdi_rm_request_resource(
struct wlan_ipa_priv *ipa_ctx,
qdf_ipa_rm_resource_name_t res_name)

View file

@ -31,6 +31,16 @@
#include "cdp_txrx_ipa.h"
#include "host_diag_core_event.h"
#ifdef FEATURE_METERING
void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx)
{
qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp);
qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp);
}
#endif
#ifndef CONFIG_IPA_WDI_UNIFIED_API
QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
uint64_t tx_packets,
uint64_t rx_packets)
@ -96,15 +106,6 @@ QDF_STATUS wlan_ipa_set_perf_level(struct wlan_ipa_priv *ipa_ctx,
return QDF_STATUS_SUCCESS;
}
#ifdef FEATURE_METERING
void wlan_ipa_init_metering(struct wlan_ipa_priv *ipa_ctx)
{
qdf_event_create(&ipa_ctx->ipa_uc_sharing_stats_comp);
qdf_event_create(&ipa_ctx->ipa_uc_set_quota_comp);
}
#endif
#ifndef CONFIG_IPA_WDI_UNIFIED_API
/**
* wlan_ipa_rm_cons_release() - WLAN consumer resource release handler
*