]> git.baikalelectronics.ru Git - kernel.git/commit
RISC-V: Use WRITE_ONCE instead of direct access
authorAtish Patra <atish.patra@wdc.com>
Tue, 2 Oct 2018 19:15:03 +0000 (12:15 -0700)
committerPalmer Dabbelt <palmer@sifive.com>
Tue, 23 Oct 2018 00:03:37 +0000 (17:03 -0700)
commitf6f47f290c4302e03f4dd6661a8e6ccb1eebbea5
treeb050e592dc352a44bddc333ead5602abbab2e7a4
parent5e55b2480efe07552c91adedfcca521a61e6c9ae
RISC-V: Use WRITE_ONCE instead of direct access

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 <atish.patra@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Palmer Dabbelt <palmer@sifive.com>
arch/riscv/kernel/smpboot.c