summaryrefslogtreecommitdiffstats
path: root/include/asm-alpha/atomic.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-10-24 23:05:58 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2005-10-25 09:32:46 -0700
commit0db9ae4a79381a5a3d272ccb51851c48c4bcbb6d (patch)
tree2799d939a04135e036eece1159771badac48e6e8 /include/asm-alpha/atomic.h
parentc14e2cfc18659c6ca67c2e10417c432eb978d976 (diff)
downloadlinux-0db9ae4a79381a5a3d272ccb51851c48c4bcbb6d.tar.gz
linux-0db9ae4a79381a5a3d272ccb51851c48c4bcbb6d.tar.bz2
linux-0db9ae4a79381a5a3d272ccb51851c48c4bcbb6d.zip
[PATCH] alpha: atomic dependency fix
My alpha build is exploding because asm/atomic.h now needs smb_mb(), which is over in the (not included) system.h. I fear what will happen if I include system.h into atomic.h, so let's put the barriers into their own header file. Cc: Richard Henderson <rth@twiddle.net> Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-alpha/atomic.h')
-rw-r--r--include/asm-alpha/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-alpha/atomic.h b/include/asm-alpha/atomic.h
index 0b40bad00289..20ac3d95ecd9 100644
--- a/include/asm-alpha/atomic.h
+++ b/include/asm-alpha/atomic.h
@@ -1,6 +1,8 @@
#ifndef _ALPHA_ATOMIC_H
#define _ALPHA_ATOMIC_H
+#include <asm/barrier.h>
+
/*
* Atomic operations that C can't guarantee us. Useful for
* resource counting etc...