summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorMohan T <mohant@nvidia.com>2013-07-04 10:50:31 +0530
committerHarshada Kale <hkale@nvidia.com>2013-07-05 02:51:25 -0700
commit180138a04059736114322e980df585d95d096b33 (patch)
treee5ee036528aaf12cba536ae553f8d31f5e516c17 /drivers/net
parent846fdfebc281900f8fd4cb093f972321ff9540e2 (diff)
net: wireless: bcmdhd: Set dpc rt thread priority to max
Dhd dpc rt thread is getting starved on CPU load scenarios. NIC driver has to get the data in real time, So we need to set dpc rt thread priority to max. RT thread with SCHED_FIFO schedule policy priorities are in ascending order (i.e. 1 is lowest priority, 99 is highest). So setting the dhd_dpc_thread priority to 99 to avoid starvation. - Set CUSTOM_DPC_PRIO_SETTING to 99 Bug 1286848 Change-Id: Iec4a9ff8f1d8c4cf70e4c9c1ec055f1a0584a346 Signed-off-by: Mohan T <mohant@nvidia.com> Reviewed-on: http://git-master/r/244976 Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/bcmdhd/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/bcmdhd/Makefile b/drivers/net/wireless/bcmdhd/Makefile
index 7361e03b16f8..289ac4f0eaac 100644
--- a/drivers/net/wireless/bcmdhd/Makefile
+++ b/drivers/net/wireless/bcmdhd/Makefile
@@ -43,6 +43,9 @@ DHDCFLAGS += -DP2P_DISCOVERY_WAR
#DHDCFLAGS += -DRSSI_OFFSET=5
#endif
+## Set dhd_dpd_thread priority to MAX to avoid starvation
+DHDCFLAGS += -DCUSTOM_DPC_PRIO_SETTING=99
+
ifeq ($(CONFIG_BCMDHD_HW_OOB),y)
DHDCFLAGS += -DHW_OOB -DOOB_INTR_ONLY
else