Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/atomic.h

    r7a0359b r40239b9  
    3939#include <typedefs.h>
    4040#include <preemption.h>
    41 #include <trace.h>
    4241
    4342/** Atomic add operation.
     
    5150 *
    5251 */
    53 NO_TRACE static inline atomic_count_t atomic_add(atomic_t *val,
    54     atomic_count_t i)
     52static inline atomic_count_t atomic_add(atomic_t *val, atomic_count_t i)
    5553{
    5654        atomic_count_t a;
     
    7472}
    7573
    76 NO_TRACE static inline atomic_count_t atomic_preinc(atomic_t *val)
     74static inline atomic_count_t atomic_preinc(atomic_t *val)
    7775{
    7876        return atomic_add(val, 1) + 1;
    7977}
    8078
    81 NO_TRACE static inline atomic_count_t atomic_postinc(atomic_t *val)
     79static inline atomic_count_t atomic_postinc(atomic_t *val)
    8280{
    8381        return atomic_add(val, 1);
    8482}
    8583
    86 NO_TRACE static inline atomic_count_t atomic_predec(atomic_t *val)
     84static inline atomic_count_t atomic_predec(atomic_t *val)
    8785{
    8886        return atomic_add(val, -1) - 1;
    8987}
    9088
    91 NO_TRACE static inline atomic_count_t atomic_postdec(atomic_t *val)
     89static inline atomic_count_t atomic_postdec(atomic_t *val)
    9290{
    9391        return atomic_add(val, -1);
    9492}
    9593
    96 NO_TRACE static inline void atomic_inc(atomic_t *val)
     94static inline void atomic_inc(atomic_t *val)
    9795{
    9896        (void) atomic_add(val, 1);
    9997}
    10098
    101 NO_TRACE static inline void atomic_dec(atomic_t *val)
     99static inline void atomic_dec(atomic_t *val)
    102100{
    103101        (void) atomic_add(val, -1);
    104102}
    105103
    106 NO_TRACE static inline atomic_count_t test_and_set(atomic_t *val)
     104static inline atomic_count_t test_and_set(atomic_t *val)
    107105{
    108106        atomic_count_t v = 1;
     
    119117}
    120118
    121 NO_TRACE static inline void atomic_lock_arch(atomic_t *val)
     119static inline void atomic_lock_arch(atomic_t *val)
    122120{
    123121        atomic_count_t tmp1 = 1;
Note: See TracChangeset for help on using the changeset viewer.