linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* csky: smp_mb__after_spinlock
@ 2020-08-05 10:41 peterz
  2020-08-05 10:44 ` peterz
  2020-08-07  0:22 ` Guo Ren
  0 siblings, 2 replies; 5+ messages in thread
From: peterz @ 2020-08-05 10:41 UTC (permalink / raw)
  To: ren_guo; +Cc: linux-kernel, linux-csky, mathieu.desnoyers, Will Deacon

Hi,

While doing an audit of smp_mb__after_spinlock, I found that csky
defines it, why?

CSKY only has smp_mb(), it doesn't override __atomic_acquire_fence or
otherwise special cases it's atomic*_acquire() primitives. It has an
explicit smp_mb() in its arch_spin_lock().

---
diff --git a/arch/csky/include/asm/spinlock.h b/arch/csky/include/asm/spinlock.h
index 7cf3f2b34cea..22a05caf2d18 100644
--- a/arch/csky/include/asm/spinlock.h
+++ b/arch/csky/include/asm/spinlock.h
@@ -88,9 +88,6 @@ static inline int arch_spin_is_contended(arch_spinlock_t *lock)
 
 #include <asm/qrwlock.h>
 
-/* See include/linux/spinlock.h */
-#define smp_mb__after_spinlock()	smp_mb()
-
 #else /* CONFIG_QUEUED_RWLOCKS */
 
 /*

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-08-07  8:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-05 10:41 csky: smp_mb__after_spinlock peterz
2020-08-05 10:44 ` peterz
2020-08-07  0:23   ` Guo Ren
2020-08-07  0:22 ` Guo Ren
2020-08-07  8:12   ` peterz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).