VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Peter Zijlstra <peterz@infradead.org> 2015-09-18 11:13:10 +0200 committer: Ingo Molnar <mingo@kernel.org> 2015-09-23 09:54:28 +0200 commit: 62e8a3258bda118f24ff462fe04cfbe75b8189b5 parent: 90fe65148ea76988d8d5acbf3e578aa74129a490
Commit Summary:
atomic, arch: Audit atomic_{read,set}()
Diffstat:
1 file changed, 2 insertions, 2 deletions
diff --git a/arch/h8300/include/asm/atomic.h b/arch/h8300/include/asm/atomic.h
index 702ee539f87d..4435a445ae7e 100644
--- a/arch/h8300/include/asm/atomic.h
+++ b/arch/h8300/include/asm/atomic.h
@@ -11,8 +11,8 @@
 
 #define ATOMIC_INIT(i)	{ (i) }
 
-#define atomic_read(v)		ACCESS_ONCE((v)->counter)
-#define atomic_set(v, i)	(((v)->counter) = i)
+#define atomic_read(v)		READ_ONCE((v)->counter)
+#define atomic_set(v, i)	WRITE_ONCE(((v)->counter), (i))
 
 #include <linux/kernel.h>