hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/arch/sh/include/asm/spinlock-llsc.h
....@@ -1,12 +1,9 @@
1
-/*
1
+/* SPDX-License-Identifier: GPL-2.0
2
+ *
23 * include/asm-sh/spinlock-llsc.h
34 *
45 * Copyright (C) 2002, 2003 Paul Mundt
56 * Copyright (C) 2006, 2007 Akio Idehara
6
- *
7
- * This file is subject to the terms and conditions of the GNU General Public
8
- * License. See the file "COPYING" in the main directory of this archive
9
- * for more details.
107 */
118 #ifndef __ASM_SH_SPINLOCK_LLSC_H
129 #define __ASM_SH_SPINLOCK_LLSC_H
....@@ -50,6 +47,8 @@
5047 {
5148 unsigned long tmp;
5249
50
+ /* This could be optimised with ARCH_HAS_MMIOWB */
51
+ mmiowb();
5352 __asm__ __volatile__ (
5453 "mov #1, %0 ! arch_spin_unlock \n\t"
5554 "mov.l %0, @%1 \n\t"