Ignore:
File:
1 edited

Legend:

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

    r40239b9 r7a0359b  
    3939#include <typedefs.h>
    4040#include <preemption.h>
     41#include <trace.h>
    4142
    4243/** Atomic add operation.
     
    5051 *
    5152 */
    52 static inline atomic_count_t atomic_add(atomic_t *val, atomic_count_t i)
     53NO_TRACE static inline atomic_count_t atomic_add(atomic_t *val,
     54    atomic_count_t i)
    5355{
    5456        atomic_count_t a;
     
    7274}
    7375
    74 static inline atomic_count_t atomic_preinc(atomic_t *val)
     76NO_TRACE static inline atomic_count_t atomic_preinc(atomic_t *val)
    7577{
    7678        return atomic_add(val, 1) + 1;
    7779}
    7880
    79 static inline atomic_count_t atomic_postinc(atomic_t *val)
     81NO_TRACE static inline atomic_count_t atomic_postinc(atomic_t *val)
    8082{
    8183        return atomic_add(val, 1);
    8284}
    8385
    84 static inline atomic_count_t atomic_predec(atomic_t *val)
     86NO_TRACE static inline atomic_count_t atomic_predec(atomic_t *val)
    8587{
    8688        return atomic_add(val, -1) - 1;
    8789}
    8890
    89 static inline atomic_count_t atomic_postdec(atomic_t *val)
     91NO_TRACE static inline atomic_count_t atomic_postdec(atomic_t *val)
    9092{
    9193        return atomic_add(val, -1);
    9294}
    9395
    94 static inline void atomic_inc(atomic_t *val)
     96NO_TRACE static inline void atomic_inc(atomic_t *val)
    9597{
    9698        (void) atomic_add(val, 1);
    9799}
    98100
    99 static inline void atomic_dec(atomic_t *val)
     101NO_TRACE static inline void atomic_dec(atomic_t *val)
    100102{
    101103        (void) atomic_add(val, -1);
    102104}
    103105
    104 static inline atomic_count_t test_and_set(atomic_t *val)
     106NO_TRACE static inline atomic_count_t test_and_set(atomic_t *val)
    105107{
    106108        atomic_count_t v = 1;
     
    117119}
    118120
    119 static inline void atomic_lock_arch(atomic_t *val)
     121NO_TRACE static inline void atomic_lock_arch(atomic_t *val)
    120122{
    121123        atomic_count_t tmp1 = 1;
Note: See TracChangeset for help on using the changeset viewer.