Changeset d2ab461 in mainline


Ignore:
Timestamp:
2006-03-22T22:25:28Z (19 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2802767
Parents:
d71007e
Message:

Small atomic #include and typedef changes.

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • arch/ia64/include/atomic.h

    rd71007e rd2ab461  
    3030#define __ia64_ATOMIC_H__
    3131
    32 #include <arch/types.h>
    33 #include <typedefs.h>
    34 
    35 
    3632/** Atomic addition.
    3733 *
  • arch/mips32/include/atomic.h

    rd71007e rd2ab461  
    2929#ifndef __mips32_ATOMIC_H__
    3030#define __mips32_ATOMIC_H__
    31 
    32 #include <arch/types.h>
    33 #include <typedefs.h>
    3431
    3532#define atomic_inc(x)   ((void) atomic_add(x, 1))
  • arch/ppc32/include/atomic.h

    rd71007e rd2ab461  
    3030#define __ppc32_ATOMIC_H__
    3131
    32 #include <arch/types.h>
    33 #include <typedefs.h>
    34 
    3532static inline void atomic_inc(atomic_t *val)
    3633{
    37         __u32 tmp;
     34        long tmp;
    3835
    3936        asm __volatile__ (
     
    5047static inline void atomic_dec(atomic_t *val)
    5148{
    52         __u32 tmp;
     49        long tmp;
    5350
    5451        asm __volatile__(
  • generic/include/atomic.h

    rd71007e rd2ab461  
    3030#define __ATOMIC_H__
    3131
    32 struct atomic {
     32typedef struct atomic {
    3333        volatile long count;
    34 };
     34} atomic_t;
    3535
    3636#include <arch/atomic.h>
    37 #include <typedefs.h>
    3837
    3938static inline void atomic_set(atomic_t *val, long i)
  • generic/include/typedefs.h

    rd71007e rd2ab461  
    6262typedef struct condvar condvar_t;
    6363typedef struct waitq waitq_t;
     64typedef struct futex futex_t;
    6465
    6566typedef struct chunk chunk_t;
     
    9394typedef struct btree btree_t;
    9495
    95 typedef struct atomic atomic_t;
    96 
    9796#endif
Note: See TracChangeset for help on using the changeset viewer.