hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/arc/include/asm/barrier.h
....@@ -1,9 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2014-15 Synopsys, Inc. (www.synopsys.com)
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
96 #ifndef __ASM_BARRIER_H
....@@ -30,7 +27,7 @@
3027 #define rmb() asm volatile("dmb 1\n" : : : "memory")
3128 #define wmb() asm volatile("dmb 2\n" : : : "memory")
3229
33
-#elif !defined(CONFIG_ARC_PLAT_EZNPS) /* CONFIG_ISA_ARCOMPACT */
30
+#else
3431
3532 /*
3633 * ARCompact based cores (ARC700) only have SYNC instruction which is super
....@@ -39,13 +36,6 @@
3936 */
4037
4138 #define mb() asm volatile("sync\n" : : : "memory")
42
-
43
-#else /* CONFIG_ARC_PLAT_EZNPS */
44
-
45
-#include <plat/ctop.h>
46
-
47
-#define mb() asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RW) : "memory")
48
-#define rmb() asm volatile (".word %0" : : "i"(CTOP_INST_SCHD_RD) : "memory")
4939
5040 #endif
5141