diff options
author | Will Deacon <will@kernel.org> | 2019-10-30 17:50:10 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-07-21 11:50:35 +0200 |
commit | d6462858851549c62d73eaa14b31132b0f32d6b6 (patch) | |
tree | 058dbd3fd192d8e00b621b1fbbb9e4995c37093b /mm/memory.c | |
parent | asm/rwonce: Allow __READ_ONCE to be overridden by the architecture (diff) | |
download | linux-d6462858851549c62d73eaa14b31132b0f32d6b6.tar.xz linux-d6462858851549c62d73eaa14b31132b0f32d6b6.zip |
alpha: Override READ_ONCE() with barriered implementation
Rather then relying on the core code to use smp_read_barrier_depends()
as part of the READ_ONCE() definition, instead override __READ_ONCE()
in the Alpha code so that it generates the required mb() and then
implement smp_load_acquire() using the new macro to avoid redundant
back-to-back barriers from the generic implementation.
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions