git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git]
/
include
/
asm-arm
/
atomic.h
diff --git
a/include/asm-arm/atomic.h
b/include/asm-arm/atomic.h
index
3d7283d
..
ea88aa6
100644
(file)
--- a/
include/asm-arm/atomic.h
+++ b/
include/asm-arm/atomic.h
@@
-11,7
+11,6
@@
#ifndef __ASM_ARM_ATOMIC_H
#define __ASM_ARM_ATOMIC_H
#ifndef __ASM_ARM_ATOMIC_H
#define __ASM_ARM_ATOMIC_H
-#include <linux/config.h>
#include <linux/compiler.h>
typedef struct { volatile int counter; } atomic_t;
#include <linux/compiler.h>
typedef struct { volatile int counter; } atomic_t;
@@
-129,10
+128,10
@@
static inline int atomic_add_return(int i, atomic_t *v)
unsigned long flags;
int val;
unsigned long flags;
int val;
- local_irq_save(flags);
+
raw_
local_irq_save(flags);
val = v->counter;
v->counter = val += i;
val = v->counter;
v->counter = val += i;
- local_irq_restore(flags);
+
raw_
local_irq_restore(flags);
return val;
}
return val;
}
@@
-142,10
+141,10
@@
static inline int atomic_sub_return(int i, atomic_t *v)
unsigned long flags;
int val;
unsigned long flags;
int val;
- local_irq_save(flags);
+
raw_
local_irq_save(flags);
val = v->counter;
v->counter = val -= i;
val = v->counter;
v->counter = val -= i;
- local_irq_restore(flags);
+
raw_
local_irq_restore(flags);
return val;
}
return val;
}
@@
-155,11
+154,11
@@
static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
int ret;
unsigned long flags;
int ret;
unsigned long flags;
- local_irq_save(flags);
+
raw_
local_irq_save(flags);
ret = v->counter;
if (likely(ret == old))
v->counter = new;
ret = v->counter;
if (likely(ret == old))
v->counter = new;
- local_irq_restore(flags);
+
raw_
local_irq_restore(flags);
return ret;
}
return ret;
}
@@
-168,9
+167,9
@@
static inline void atomic_clear_mask(unsigned long mask, unsigned long *addr)
{
unsigned long flags;
{
unsigned long flags;
- local_irq_save(flags);
+
raw_
local_irq_save(flags);
*addr &= ~mask;
*addr &= ~mask;
- local_irq_restore(flags);
+
raw_
local_irq_restore(flags);
}
#endif /* __LINUX_ARM_ARCH__ */
}
#endif /* __LINUX_ARM_ARCH__ */