qcacld-3.0: Enable QDF lock stats feature in debug build

Enable QDF lock stats debug feature in defconfig builds to detect
spin lock abuse in driver and fix it.

Change-Id: I264120d1ca722bac871173f2268737a943c2f5e0
CRs-Fixed: 2311639
This commit is contained in:
Rajeev Kumar
2018-09-07 17:29:28 -07:00
committed by nshrivas
父節點 713c020c36
當前提交 4a8d264d94
共有 2 個文件被更改,包括 9 次插入0 次删除

8
Kbuild
查看文件

@@ -2347,6 +2347,14 @@ ifdef CONFIG_SIR_SAP_MAX_NUM_PEERS
ccflags-y += -DSIR_SAP_MAX_NUM_PEERS=$(CONFIG_SIR_SAP_MAX_NUM_PEERS)
endif
ifdef CONFIG_LOCK_STATS_ON
ccflags-y += -DQDF_LOCK_STATS=1
ccflags-y += -DQDF_LOCK_STATS_DESTROY_PRINT=0
ccflags-y += -DQDF_LOCK_STATS_BUG_ON=1
ccflags-y += -DQDF_LOCK_STATS_LIST=1
ccflags-y += -DQDF_LOCK_STATS_LIST_SIZE=256
endif
KBUILD_CPPFLAGS += $(cppflags-y)
# Currently, for versions of gcc which support it, the kernel Makefile