Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/lib/refcount.h

    r1a1e124 r1871118  
    4949} atomic_refcount_t;
    5050
    51 #define REFCOUNT_INITIALIZER() { \
    52         .__cnt = ATOMIC_VAR_INIT(0), \
    53 }
    54 
    5551static inline void refcount_init(atomic_refcount_t *rc)
    5652{
    57         atomic_init(&rc->__cnt, 0);
     53        atomic_store_explicit(&rc->__cnt, 0, memory_order_relaxed);
    5854}
    5955
Note: See TracChangeset for help on using the changeset viewer.