Changeset 58775d30 in mainline for kernel/generic/include/atomic.h


Ignore:
Timestamp:
2015-03-16T16:07:21Z (9 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2003739
Parents:
6069061 (diff), 795e2bf (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/atomic.h

    r6069061 r58775d30  
    5353}
    5454
     55
     56/*
     57 * If the architecture does not provide operations that are atomic
     58 * only with respect to the local cpu (eg exception handlers) and
     59 * not other cpus, implement these cpu local atomic operations with
     60 * full blown smp-safe atomics.
     61 */
     62#ifndef local_atomic_exchange
     63#define local_atomic_exchange(var_addr, new_val) \
     64        __atomic_exchange_n((var_addr), (new_val), __ATOMIC_RELAXED)
     65#endif
     66
     67
     68
    5569#endif
    5670
Note: See TracChangeset for help on using the changeset viewer.