Parcourir la source

qcacmn: Relax spin lock abuse detection thresholds

Increase irq save spin lock abuse detection threshold to 10 ms
and spin lock bh abuse detection threshold to 1 second such that
very obvious spin lock abuse cases by WLAN driver are detected
and fixed.

Change-Id: I8ca751404dc05e3fc3b6aa5db8538cb98c710260
CRs-Fixed: 2047464
Rajeev Kumar il y a 8 ans
Parent
commit
a86e46fee9
1 fichiers modifiés avec 4 ajouts et 3 suppressions
  1. 4 3
      qdf/inc/qdf_lock.h

+ 4 - 3
qdf/inc/qdf_lock.h

@@ -51,9 +51,10 @@
 #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
-#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK     5000
+/* Max hold time in micro seconds, 0 to disable detection*/
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_IRQ         10000
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_BH        1000000
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK                 0
 
 #if !QDF_LOCK_STATS
 struct lock_stats {};