MCS: fix ARM64 issue by using smp_XXX() functions (i.e., barrier()s)

Change-Id: I41470c082308c7c1ac91f88db2229958398d2e68
This commit is contained in:
Balazs Gerofi
2019-04-10 20:26:13 +09:00
parent ad3ee26d36
commit bdccbf7356
2 changed files with 33 additions and 17 deletions

View File

@@ -42,4 +42,12 @@ static inline unsigned long read_tsc(void)
___p1; \
})
#define smp_store_release(p, v) \
({ \
compiletime_assert_atomic_type(*p); \
barrier(); \
WRITE_ONCE(*p, v); \
})
#endif /* ARCH_CPU_H */