From 4335742fbd28c2d94a14a9c932111be59fdabef2 Mon Sep 17 00:00:00 2001 From: Syed Rameez Mustafa Date: Mon, 5 Aug 2013 16:32:13 -0700 Subject: [PATCH] lib: spinlock_debug: increase spin dump timeout On certain targets the worst case console buffer draining time can exceed the aggressive spin dump timeout value. Relax the timeout value to cater to these scenarios. Change-Id: I7312ffe06bafd2dc7adf0f4e8b73a53fc5839235 Signed-off-by: Syed Rameez Mustafa --- lib/spinlock_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spinlock_debug.c b/lib/spinlock_debug.c index ac516f4f59e..6d22836682f 100644 --- a/lib/spinlock_debug.c +++ b/lib/spinlock_debug.c @@ -108,7 +108,7 @@ static inline void debug_spin_unlock(raw_spinlock_t *lock) static void __spin_lock_debug(raw_spinlock_t *lock) { u64 i; - u64 loops = (loops_per_jiffy * HZ) >> 4; + u64 loops = (loops_per_jiffy * HZ) >> 1; for (i = 0; i < loops; i++) { if (arch_spin_trylock(&lock->raw_lock))