qcacmn: Add INI support for SWLM

Add support to enable or disable the
Software latency manager via INI

Change-Id: I4acde4d5d2b9813de8f64f336d4b3b8c25e67b63
CRs-Fixed: 2769029
This commit is contained in:
Rakesh Pillai
2020-08-29 22:12:45 -07:00
gecommit door snandini
bovenliggende b6835a9413
commit 02723d3bc2
4 gewijzigde bestanden met toevoegingen van 49 en 3 verwijderingen

Bestand weergeven

@@ -189,6 +189,7 @@ struct wlan_srng_cfg {
* pool support
* @rx_pending_high_threshold: threshold of starting pkt drop
* @rx_pending_low_threshold: threshold of stopping pkt drop
* @is_swlm_enabled: flag to enable/disable SWLM
*/
struct wlan_cfg_dp_soc_ctxt {
int num_int_ctxts;
@@ -298,6 +299,7 @@ struct wlan_cfg_dp_soc_ctxt {
uint32_t rx_pending_high_threshold;
uint32_t rx_pending_low_threshold;
bool is_poll_mode_enabled;
uint8_t is_swlm_enabled;
};
/**
@@ -1382,7 +1384,6 @@ bool wlan_cfg_is_rx_fisa_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
* Return: true if enabled, false otherwise.
*/
bool wlan_cfg_is_rx_buffer_pool_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
#endif
void wlan_cfg_set_tso_desc_attach_defer(struct wlan_cfg_dp_soc_ctxt *cfg,
bool val);
@@ -1431,3 +1432,13 @@ wlan_cfg_is_peer_ext_stats_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
*/
bool wlan_cfg_is_poll_mode_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
/**
* wlan_cfg_is_swlm_enabled() - Get SWLMenabled flag
* @cfg: soc configuration context
*
* Return: true if enabled, false otherwise.
*/
bool wlan_cfg_is_swlm_enabled(struct wlan_cfg_dp_soc_ctxt *cfg);
#endif