From 540222c531ed7bf3adfcfd60215242cbf238990d Mon Sep 17 00:00:00 2001 From: Houston Hoffman Date: Mon, 16 Jan 2017 11:03:08 -0800 Subject: [PATCH] qcacmn: Set defaults for QDF_LOCK_STATS features Allow kbuild to enable/disable these features, but provide defaults if the kbuild is unaware of these features. Change-Id: Icd8054b5607749fd385f6664b8e06b31894c56c7 CRs-Fixed: 1111956 --- qdf/inc/qdf_lock.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qdf/inc/qdf_lock.h b/qdf/inc/qdf_lock.h index 0048750cc2..b375ac7819 100644 --- a/qdf/inc/qdf_lock.h +++ b/qdf/inc/qdf_lock.h @@ -38,10 +38,18 @@ #include #include +#ifndef QDF_LOCK_STATS #define QDF_LOCK_STATS 0 +#endif +#ifndef QDF_LOCK_STATS_DESTROY_PRINT #define QDF_LOCK_STATS_DESTROY_PRINT 0 +#endif +#ifndef QDF_LOCK_STATS_BUG_ON #define QDF_LOCK_STATS_BUG_ON 0 +#endif +#ifndef QDF_LOCK_STATS_LIST #define QDF_LOCK_STATS_LIST 0 +#endif #define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_IRQ 1000 #define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_BH 5000