qcacld-3.0: Enable scheduler history for SLUB builds
Enable the scheduler history when compiling SLUB debug builds.
Change-Id: If06f9076bcb01fe5dbb3fd4d031fc87b7e883425
CRs-Fixed: 2307251
diff --git a/Kbuild b/Kbuild
index 3500173..84280e1 100755
--- a/Kbuild
+++ b/Kbuild
@@ -2272,6 +2272,10 @@
#Flag to enable Dynamic Voltage WDCVS (Config Voltage Mode)
cppflags-$(CONFIG_WLAN_DYNAMIC_CVM) += -DFEATURE_WLAN_DYNAMIC_CVM
+ifdef CONFIG_SCHED_HISTORY_SIZE
+ccflags-y += -DWLAN_SCHED_HISTORY_SIZE=$(CONFIG_SCHED_HISTORY_SIZE)
+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)