Commit 7082a29c authored by Vineet Gupta's avatar Vineet Gupta

ARC: use ACCESS_ONCE in cmpxchg loop

Signed-off-by: default avatarVineet Gupta <vgupta@synopsys.com>
parent 98edfab4
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment