Browse Source

qcacld-3.0: Add feature flag option for QDF_TIMER_MULTIPLER_FRAC

Add feature flag config option for QDF_TIMER_MULTIPLER_FRAC

Change-Id: Ie53ec703965311235971340251fe92fcb980a0d5
CRs-Fixed: 2855518
Alan Chen 4 years ago
parent
commit
c281068c27
2 changed files with 9 additions and 0 deletions
  1. 4 0
      Kbuild
  2. 5 0
      configs/default_defconfig

+ 4 - 0
Kbuild

@@ -3518,6 +3518,10 @@ ifdef CONFIG_SCHED_HISTORY_SIZE
 ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
 endif
 
+ifdef CONFIG_QDF_TIMER_MULTIPLIER_FRAC
+ccflags-y += -DQDF_TIMER_MULTIPLIER_FRAC=$(CONFIG_QDF_TIMER_MULTIPLIER_FRAC)
+endif
+
 # configure log buffer size
 ifdef CONFIG_CFG_NUM_DP_TRACE_RECORD
 ccflags-y += -DMAX_QDF_DP_TRACE_RECORDS=$(CONFIG_CFG_NUM_DP_TRACE_RECORD)

+ 5 - 0
configs/default_defconfig

@@ -1035,6 +1035,11 @@ endif
 CONFIG_RX_OL := y
 endif
 
+ifeq ($(CONFIG_CNSS_EMULATION), y)
+#on emulation platform, increase host timeouts by 1000 times
+CONFIG_QDF_TIMER_MULTIPLIER_FRAC := 1000
+endif
+
 ifeq ($(CONFIG_SLUB_DEBUG_ON), y)
 	CONFIG_DSC_DEBUG := y
 	CONFIG_DESC_TIMESTAMP_DEBUG_INFO := y