From 730f4fbf1f79bdf8b9765c7ba725c12fc02362f5 Mon Sep 17 00:00:00 2001 From: Hosung Kim Date: Wed, 12 Sep 2018 10:44:12 +0900 Subject: [PATCH] [ERD][NEUS7920-76] [COMMON] lib: dss: add missing logging for spin_trylock This commit adds missing logging when using spin_trylock. It was logging only exit(en = 3) before when using spin_trylock. Change-Id: I8776a20846f6b1bfca5da7e77f051c9a3f28c9b5 Signed-off-by: Hosung Kim --- include/linux/spinlock_api_smp.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/spinlock_api_smp.h b/include/linux/spinlock_api_smp.h index b110f1998952..3b6316dfc201 100644 --- a/include/linux/spinlock_api_smp.h +++ b/include/linux/spinlock_api_smp.h @@ -87,7 +87,9 @@ static inline int __raw_spin_trylock(raw_spinlock_t *lock) { preempt_disable(); if (do_raw_spin_trylock(lock)) { + dbg_snapshot_spinlock(lock, 1); spin_acquire(&lock->dep_map, 0, 1, _RET_IP_); + dbg_snapshot_spinlock(lock, 2); return 1; } preempt_enable(); -- 2.20.1