diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2009-04-14 05:00:48 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-14 20:08:57 -0400 |
commit | c7cb1521b3289e2d107d3139ad7a902b386d7e43 (patch) | |
tree | 0122826de7ab5a1521905cc8491c70990207c34b /arch/sparc/include/asm | |
parent | 8e255baa449df3049a8827a7f1f4f12b6921d0d1 (diff) |
sparc: asm/atomic.h on 32bit should include asm/system.h for xchg
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm')
-rw-r--r-- | arch/sparc/include/asm/atomic_32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/atomic_32.h b/arch/sparc/include/asm/atomic_32.h index ce465975a6a5..bb91b1248cd1 100644 --- a/arch/sparc/include/asm/atomic_32.h +++ b/arch/sparc/include/asm/atomic_32.h | |||
@@ -15,6 +15,8 @@ | |||
15 | 15 | ||
16 | #ifdef __KERNEL__ | 16 | #ifdef __KERNEL__ |
17 | 17 | ||
18 | #include <asm/system.h> | ||
19 | |||
18 | #define ATOMIC_INIT(i) { (i) } | 20 | #define ATOMIC_INIT(i) { (i) } |
19 | 21 | ||
20 | extern int __atomic_add_return(int, atomic_t *); | 22 | extern int __atomic_add_return(int, atomic_t *); |