Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0aa301d0 authored by Rohit Vaswani's avatar Rohit Vaswani Committed by Prasad Sodagudi
Browse files

lib: spinlock_debug: Prevent continuous spin dump logs on panic



Once a spinlock lockup is detected on a CPU, we invoke a Kernel Panic.
During the panic handling, we might see more instances of spinlock
lockup from other CPUs. This causes the dmesg to be cluttered and makes
it cumbersome to detect what exactly happened.
Call spin_bug instead of calling spin_dump directly.

Change-Id: I57857a991345a8dac3cd952463d05129145867a8
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: default avatarPrasad Sodagudi <psodagud@codeaurora.org>
parent 40b49a34
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -116,7 +116,7 @@ static void __spin_lock_debug(raw_spinlock_t *lock)
		__delay(1);
		__delay(1);
	}
	}
	/* lockup suspected: */
	/* lockup suspected: */
	spin_dump(lock, "lockup suspected");
	spin_bug(lock, "lockup suspected");
#ifdef CONFIG_SMP
#ifdef CONFIG_SMP
	trigger_all_cpu_backtrace();
	trigger_all_cpu_backtrace();
#endif
#endif