ARC: use ACCESS_ONCE in cmpxchg loop

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
Vineet Gupta 2014-12-15 18:42:24 +05:30
parent 98edfab4c1
commit 7082a29c22
1 changed files with 1 additions and 1 deletions

View File

@ -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);