From: Hosung Kim Date: Wed, 12 Sep 2018 01:44:12 +0000 (+0900) Subject: [ERD][NEUS7920-76] [COMMON] lib: dss: add missing logging for spin_trylock X-Git-Tag: MMI-QSAS30.62-33-3~759 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=730f4fbf1f79bdf8b9765c7ba725c12fc02362f5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 --- 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();