]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
microblaze: Define microblaze barrier
authorStefan Asserhall <stefan.asserhall@xilinx.com>
Tue, 21 Jan 2020 11:32:33 +0000 (12:32 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 25 Feb 2020 11:33:19 +0000 (12:33 +0100)
Define microblaze barrier.

Signed-off-by: Stefan Asserhall <stefan.asserhall@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
arch/microblaze/include/asm/Kbuild
arch/microblaze/include/asm/barrier.h [new file with mode: 0644]

index a11407112e9a893a58fbc8b4bca78377fe0b56ea..abb33619299b4ab060ac29ad32f0bf5cd39fd9cc 100644 (file)
@@ -1,6 +1,5 @@
 # SPDX-License-Identifier: GPL-2.0
 generated-y += syscall_table.h
-generic-y += barrier.h
 generic-y += bitops.h
 generic-y += bug.h
 generic-y += bugs.h
diff --git a/arch/microblaze/include/asm/barrier.h b/arch/microblaze/include/asm/barrier.h
new file mode 100644 (file)
index 0000000..70b0a01
--- /dev/null
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+/*
+ * Copyright (c) 2015 - 2020 Xilinx, Inc. All rights reserved.
+ */
+
+#ifndef _ASM_MICROBLAZE_BARRIER_H
+#define _ASM_MICROBLAZE_BARRIER_H
+
+#define mb()   __asm__ __volatile__ ("mbar 1" : : : "memory")
+
+#include <asm-generic/barrier.h>
+
+#endif /* _ASM_MICROBLAZE_BARRIER_H */