projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98edfab
)
ARC: use ACCESS_ONCE in cmpxchg loop
author
Vineet Gupta
<vgupta@synopsys.com>
Mon, 15 Dec 2014 13:12:24 +0000
(18:42 +0530)
committer
Vineet Gupta
<vgupta@synopsys.com>
Mon, 2 Feb 2015 11:38:37 +0000
(17:08 +0530)
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
arch/arc/kernel/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arc/kernel/smp.c
b/arch/arc/kernel/smp.c
index 20ebb602ea2f3a4f9721fff8f4458fcf4c0e3ec5..6a400b1b0b62e07b9e0d7b14d549e8a57652d681 100644
(file)
--- a/
arch/arc/kernel/smp.c
+++ b/
arch/arc/kernel/smp.c
@@
-221,7
+221,7
@@
static void ipi_send_msg_one(int cpu, enum ipi_msg_type msg)
* and read back old value
*/
do {
- new = old =
*ipi_data_ptr
;
+ new = old =
ACCESS_ONCE(*ipi_data_ptr)
;
new |= 1U << msg;
} while (cmpxchg(ipi_data_ptr, old, new) != old);