Re: [PATCH v4 10/12] RISC-V: User WRITE_ONCE instead of direct access

2018-09-13 Thread Atish Patra
On 9/11/18 1:33 PM, Andreas Schwab wrote: s/User/Use/ Andreas. Fixed. Thanks. Regards, Atish

Re: [PATCH v4 10/12] RISC-V: User WRITE_ONCE instead of direct access

2018-09-11 Thread Andreas Schwab
s/User/Use/ Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."

[PATCH v4 10/12] RISC-V: User WRITE_ONCE instead of direct access

2018-09-11 Thread Atish Patra
The secondary harts spin on couple of per cpu variables until both of these are non-zero so it's not necessary to have any ordering here. However, WRITE_ONCE should be used to avoid tearing. Signed-off-by: Atish Patra Reviewed-by: Christoph Hellwig --- arch/riscv/kernel/smpboot.c | 5 +++-- 1 f