projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e6e5b
)
[ERD][NEUS7920-76] [COMMON] lib: dss: add missing logging for spin_trylock
author
Hosung Kim
<hosung0.kim@samsung.com>
Wed, 12 Sep 2018 01:44:12 +0000
(10:44 +0900)
committer
Kim Gunho
<gunho.kim@samsung.com>
Fri, 30 Aug 2019 07:58:56 +0000
(16:58 +0900)
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 <hosung0.kim@samsung.com>
include/linux/spinlock_api_smp.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/spinlock_api_smp.h
b/include/linux/spinlock_api_smp.h
index b110f1998952276aa292982ed64425daed5e36f1..3b6316dfc2012d98a5ae8e91aca18777e379c28b 100644
(file)
--- 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();