summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHouston Hoffman <hhoffman@codeaurora.org>2017-05-02 13:44:14 -0700
committersnandini <snandini@codeaurora.org>2017-05-02 18:30:17 -0700
commit134ba465ac8d61719d9119a5000cb36686fa1609 (patch)
treea80cd7505549d6ce0991ea1645660154906e96ff
parentdf24d8b83eae4d3bcf8b362df41dc91e82b57109 (diff)
qcacmn: Relax spinlock abuse detection (1)
Set spinlock_bh threshold to 1 second to match the watchdog bite timer. Disable detection of holding a regular spinlock too long. Change-Id: Iba6a494cb558c0bb34f8e1588527180ef1ab2ff6 CRs-Fixed: 2041657
-rw-r--r--qdf/inc/qdf_lock.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/qdf/inc/qdf_lock.h b/qdf/inc/qdf_lock.h
index 3a98a447a6fc..0a37de04fa46 100644
--- a/qdf/inc/qdf_lock.h
+++ b/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 20000
-#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK 100000
+/* Max hold time in micro seconds, 0 to disable detection*/
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_IRQ 1000
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK_BH 1000000
+#define QDF_MAX_HOLD_TIME_ALOWED_SPINLOCK 0
#if !QDF_LOCK_STATS
struct lock_stats {};