瀏覽代碼

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
Houston Hoffman 8 年之前
父節點
當前提交
540222c531
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      qdf/inc/qdf_lock.h

+ 8 - 0
qdf/inc/qdf_lock.h

@@ -38,10 +38,18 @@
 #include <qdf_time.h>
 #include <i_qdf_trace.h>
 
+#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