From a86e46fee92b8985339695b444069b0421956f2d Mon Sep 17 00:00:00 2001 From: Rajeev Kumar Date: Mon, 15 May 2017 14:44:45 -0700 Subject: [PATCH] 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 --- qdf/inc/qdf_lock.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qdf/inc/qdf_lock.h b/qdf/inc/qdf_lock.h index b375ac7819..6319fb31a3 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 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 {};