lib: spinlock: Trigger a watchdog bite on spin_dump for rwlock
Currently dump_stack is printed once a spin_bug is detected for rwlock. So provide an options to trigger a panic or watchdog bite for debugging rwlock magic corruptions and lockups. Change-Id: I20807e8eceb8b81635e58701d1f9f9bd36ab5877 Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org> Signed-off-by: Venkata Narendra Kumar Gutta <vnkgutta@codeaurora.org>
This commit is contained in:
committed by
Venkata Narendra Kumar Gutta
parent
20e5cd9d82
commit
4fa2ab20f5
@@ -150,6 +150,11 @@ static void rwlock_bug(rwlock_t *lock, const char *msg)
|
||||
printk(KERN_EMERG "BUG: rwlock %s on CPU#%d, %s/%d, %p\n",
|
||||
msg, raw_smp_processor_id(), current->comm,
|
||||
task_pid_nr(current), lock);
|
||||
#ifdef CONFIG_DEBUG_SPINLOCK_BITE_ON_BUG
|
||||
msm_trigger_wdog_bite();
|
||||
#elif defined(CONFIG_DEBUG_SPINLOCK_PANIC_ON_BUG)
|
||||
BUG();
|
||||
#endif
|
||||
dump_stack();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user