lkml.org 
[lkml]   [2019]   [Nov]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/13] READ_ONCE: Remove smp_read_barrier_depends() invocation
    Date
    Alpha overrides '__read_once_size_n()' directly, so there's no need to
    use 'smp_read_barrier_depends()' in the core code.

    Signed-off-by: Will Deacon <will@kernel.org>
    ---
    include/asm-generic/rwonce.h | 1 -
    1 file changed, 1 deletion(-)

    diff --git a/include/asm-generic/rwonce.h b/include/asm-generic/rwonce.h
    index 2c2ac0948c94..2e3289268a89 100644
    --- a/include/asm-generic/rwonce.h
    +++ b/include/asm-generic/rwonce.h
    @@ -102,7 +102,6 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
    __read_once_size(&(x), __u.__c, sizeof(x)); \
    else \
    __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
    - smp_read_barrier_depends(); /* Enforce dependency ordering from x */ \
    __u.__val; \
    })
    #define READ_ONCE(x) __READ_ONCE(x, 1)
    --
    2.24.0.rc1.363.gb1bccd3e3d-goog
    \
     
     \ /
      Last update: 2019-11-08 18:03    [W:3.813 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site