summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2009-04-14 11:00:48 +0200
committerDavid S. Miller <davem@davemloft.net>2009-04-15 02:08:57 +0200
commitc7cb1521b3289e2d107d3139ad7a902b386d7e43 (patch)
tree0122826de7ab5a1521905cc8491c70990207c34b
parentsparc64: Fix smp_callin() locking. (diff)
downloadlinux-c7cb1521b3289e2d107d3139ad7a902b386d7e43.tar.xz
linux-c7cb1521b3289e2d107d3139ad7a902b386d7e43.zip
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>
-rw-r--r--arch/sparc/include/asm/atomic_32.h2
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 @@
#ifdef __KERNEL__
+#include <asm/system.h>
+
#define ATOMIC_INIT(i) { (i) }
extern int __atomic_add_return(int, atomic_t *);