Changeset c47e1a8 in mainline for kernel/generic/include/atomic.h


Ignore:
Timestamp:
2010-05-21T07:50:04Z (15 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d51ee2b
Parents:
cf8cc36 (diff), 15b592b (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:

merge mainline changes (rev. 451)

File:
1 edited

Legend:

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

    rcf8cc36 rc47e1a8  
    2727 */
    2828
    29 /** @addtogroup generic 
     29/** @addtogroup generic
    3030 * @{
    3131 */
     
    3636#define KERN_ATOMIC_H_
    3737
    38 typedef struct atomic {
    39         volatile long count;
    40 } atomic_t;
    41 
     38#include <typedefs.h>
    4239#include <arch/atomic.h>
    4340
    44 static inline void atomic_set(atomic_t *val, long i)
     41static inline void atomic_set(atomic_t *val, atomic_count_t i)
    4542{
    4643        val->count = i;
    4744}
    4845
    49 static inline long atomic_get(atomic_t *val)
     46static inline atomic_count_t atomic_get(atomic_t *val)
    5047{
    5148        return val->count;
Note: See TracChangeset for help on using the changeset viewer.