diff options
author | Arnd Bergmann <arnd@arndb.de> | 2009-05-13 22:56:29 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@klappe2.(none)> | 2009-06-11 21:02:17 +0200 |
commit | 72099ed2719fc5829bd79c6ca9d1783ed026eb37 (patch) | |
tree | d404ded029707e3ae9146431d6b9fa033f99a64e /include | |
parent | e64a1617eca39d62b248a11699de9c1195369661 (diff) | |
download | linux-3.10-72099ed2719fc5829bd79c6ca9d1783ed026eb37.tar.gz linux-3.10-72099ed2719fc5829bd79c6ca9d1783ed026eb37.tar.bz2 linux-3.10-72099ed2719fc5829bd79c6ca9d1783ed026eb37.zip |
asm-generic: rename atomic.h to atomic-long.h
The existing asm-generic/atomic.h only defines the
atomic_long type. This renames it to atomic-long.h
so we have a place to add a truly generic atomic.h
that can be used on all non-SMP systems.
Signed-off-by: Remis Lima Baima <remis.developer@googlemail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-generic/atomic-long.h (renamed from include/asm-generic/atomic.h) | 6 | ||||
-rw-r--r-- | include/asm-generic/bitops/atomic.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/include/asm-generic/atomic.h b/include/asm-generic/atomic-long.h index 3673a13b670..76e27d66c05 100644 --- a/include/asm-generic/atomic.h +++ b/include/asm-generic/atomic-long.h @@ -1,5 +1,5 @@ -#ifndef _ASM_GENERIC_ATOMIC_H -#define _ASM_GENERIC_ATOMIC_H +#ifndef _ASM_GENERIC_ATOMIC_LONG_H +#define _ASM_GENERIC_ATOMIC_LONG_H /* * Copyright (C) 2005 Silicon Graphics, Inc. * Christoph Lameter @@ -255,4 +255,4 @@ static inline long atomic_long_add_unless(atomic_long_t *l, long a, long u) #endif /* BITS_PER_LONG == 64 */ -#endif /* _ASM_GENERIC_ATOMIC_H */ +#endif /* _ASM_GENERIC_ATOMIC_LONG_H */ diff --git a/include/asm-generic/bitops/atomic.h b/include/asm-generic/bitops/atomic.h index 4657f3e410f..c8946465e63 100644 --- a/include/asm-generic/bitops/atomic.h +++ b/include/asm-generic/bitops/atomic.h @@ -2,6 +2,7 @@ #define _ASM_GENERIC_BITOPS_ATOMIC_H_ #include <asm/types.h> +#include <asm/system.h> #ifdef CONFIG_SMP #include <asm/spinlock.h> |