[COMMON] lib: dss: move spin_unlock logging
authorHosung Kim <hosung0.kim@samsung.com>
Wed, 30 May 2018 01:53:47 +0000 (10:53 +0900)
committerYoungmin Nam <youngmin.nam@samsung.com>
Fri, 29 Jun 2018 09:18:26 +0000 (18:18 +0900)
spin_lock / spin_unlock functions are logged by DSS, others
logging is protected atomics by irq_disable. So this logging
is protected atomics by spinlock inside.

Change-Id: I0ee6544e325e0b8abad31c7e5f8696aeb21ebb31
Signed-off-by: Hosung Kim <hosung0.kim@samsung.com>
include/linux/spinlock_api_smp.h

index edcc2330db1097276c35c3934da099bb01a36284..b110f1998952276aa292982ed64425daed5e36f1 100644 (file)
@@ -154,8 +154,8 @@ static inline void __raw_spin_lock(raw_spinlock_t *lock)
 static inline void __raw_spin_unlock(raw_spinlock_t *lock)
 {
        spin_release(&lock->dep_map, 1, _RET_IP_);
-       do_raw_spin_unlock(lock);
        dbg_snapshot_spinlock(lock, 3);
+       do_raw_spin_unlock(lock);
        preempt_enable();
 }