um: "borrow" atomics from x86 architecture
Subsystems (2)
[email protected]
maintainerPATCH v2 1/1 um: "borrow" atomics from x86 architecture
From: Anton Ivanov <[email protected]>
This moves UML on 64 bit from generic atomics to their x86 equivalents.
Generic atomics bracket most operations by interrupts off/interrupts on. This is quite expensive on UML - it translates to changing the signal mask and rerunning the signal loop every time.
Signed-off-by Anton Ivanov <[email protected]>
--- arch/um/include/asm/atomic-x86.h | 1 + arch/um/include/asm/atomic.h | 13 +++++++++++++ arch/um/include/asm/atomic64_64.h | 1 + 3 files changed, 15 insertions(+) create mode 120000 arch/um/include/asm/atomic-x86.h create mode 100644 arch/um/include/asm/atomic.h create mode 120000 arch/um/include/asm/atomic64_64.h
arch/um/include/asm/atomic-x86.h new file +1 -0
@@ -0,0 +1 @@ +../../../x86/include/asm/atomic.h
arch/um/include/asm/atomic.h new file +13 -0
@@ -0,0 +1,13 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +#ifndef _ASM_UM_ATOMIC_H +#define _ASM_UM_ATOMIC_H + +#ifdef CONFIG_64BIT +#undef CONFIG_X86_32 +#include <asm/atomic-x86.h> +#else +#include <asm-generic/atomic.h> +#endif + + +#endif
arch/um/include/asm/atomic64_64.h new file +1 -0
@@ -0,0 +1 @@ +../../../x86/include/asm/atomic64_64.h
Signature · 7 lines
2.20.1 _______________________________________________ linux-um mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-um