aboutsummaryrefslogtreecommitdiffstats
path: root/lib/lru_cache.c
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2019-10-30 16:50:10 +0000
committerWill Deacon <will@kernel.org>2020-07-21 10:50:35 +0100
commitd6462858851549c62d73eaa14b31132b0f32d6b6 (patch)
tree058dbd3fd192d8e00b621b1fbbb9e4995c37093b /lib/lru_cache.c
parentasm/rwonce: Allow __READ_ONCE to be overridden by the architecture (diff)
downloadlinux-dev-d6462858851549c62d73eaa14b31132b0f32d6b6.tar.xz
linux-dev-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 'lib/lru_cache.c')
0 files changed, 0 insertions, 0 deletions