ARC: use ACCESS_ONCE in cmpxchg loop
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
98edfab4c1
commit
7082a29c22
|
@ -221,7 +221,7 @@ static void ipi_send_msg_one(int cpu, enum ipi_msg_type msg)
|
||||||
* and read back old value
|
* and read back old value
|
||||||
*/
|
*/
|
||||||
do {
|
do {
|
||||||
new = old = *ipi_data_ptr;
|
new = old = ACCESS_ONCE(*ipi_data_ptr);
|
||||||
new |= 1U << msg;
|
new |= 1U << msg;
|
||||||
} while (cmpxchg(ipi_data_ptr, old, new) != old);
|
} while (cmpxchg(ipi_data_ptr, old, new) != old);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue