lkml.org 
[lkml]   [2016]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 11/32] mips: reuse asm-generic/barrier.h
    On Thu, Dec 31, 2015 at 09:07:10PM +0200, Michael S. Tsirkin wrote:
    > -#define smp_store_release(p, v) \
    > -do { \
    > - compiletime_assert_atomic_type(*p); \
    > - smp_mb(); \
    > - WRITE_ONCE(*p, v); \
    > -} while (0)
    > -
    > -#define smp_load_acquire(p) \
    > -({ \
    > - typeof(*p) ___p1 = READ_ONCE(*p); \
    > - compiletime_assert_atomic_type(*p); \
    > - smp_mb(); \
    > - ___p1; \
    > -})

    David Daney wanted to use fancy new MIPS barriers to provide better
    implementations of this.

    This patch isn't in the way of that, just a FYI.


    \
     
     \ /
      Last update: 2016-01-04 15:01    [W:4.792 / U:0.456 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site