summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/barrier.h
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2012-03-28 18:30:03 +0100
committerDavid Howells <dhowells@redhat.com>2012-03-28 18:30:03 +0100
commitf9aa7e1882f3ceec919b30f64a2ce6e66a2571b1 (patch)
treed9b1e03d15102703722e39883ac719be52615e1a /arch/xtensa/include/asm/barrier.h
parent8978bfd2288adaa24d39fa15f57eb9e24ffeca12 (diff)
downloadop-kernel-dev-f9aa7e1882f3ceec919b30f64a2ce6e66a2571b1.zip
op-kernel-dev-f9aa7e1882f3ceec919b30f64a2ce6e66a2571b1.tar.gz
Disintegrate asm/system.h for Xtensa
Disintegrate asm/system.h for Xtensa. Signed-off-by: David Howells <dhowells@redhat.com> cc: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa/include/asm/barrier.h')
-rw-r--r--arch/xtensa/include/asm/barrier.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/barrier.h b/arch/xtensa/include/asm/barrier.h
new file mode 100644
index 0000000..55707a8
--- /dev/null
+++ b/arch/xtensa/include/asm/barrier.h
@@ -0,0 +1,29 @@
+/*
+ * This file is subject to the terms and conditions of the GNU General Public
+ * License. See the file "COPYING" in the main directory of this archive
+ * for more details.
+ *
+ * Copyright (C) 2001 - 2005 Tensilica Inc.
+ */
+
+#ifndef _XTENSA_SYSTEM_H
+#define _XTENSA_SYSTEM_H
+
+#define smp_read_barrier_depends() do { } while(0)
+#define read_barrier_depends() do { } while(0)
+
+#define mb() barrier()
+#define rmb() mb()
+#define wmb() mb()
+
+#ifdef CONFIG_SMP
+#error smp_* not defined
+#else
+#define smp_mb() barrier()
+#define smp_rmb() barrier()
+#define smp_wmb() barrier()
+#endif
+
+#define set_mb(var, value) do { var = value; mb(); } while (0)
+
+#endif /* _XTENSA_SYSTEM_H */
OpenPOWER on IntegriCloud