[PATCH v4 7/7] um: borrow bitops from the x86 tree
anton.ivanov at cambridgegreys.com
anton.ivanov at cambridgegreys.com
Fri Dec 11 12:45:59 EST 2020
From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
Using x86 bitops instead of the asm-generic allows to squeeze
a couple of percents improvement on fs IO in UML. It should
improve other areas as well.
Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>
---
arch/um/include/asm/bitops-x86.h | 1 +
arch/um/include/asm/bitops.h | 7 +++++++
2 files changed, 8 insertions(+)
create mode 120000 arch/um/include/asm/bitops-x86.h
create mode 100644 arch/um/include/asm/bitops.h
diff --git a/arch/um/include/asm/bitops-x86.h b/arch/um/include/asm/bitops-x86.h
new file mode 120000
index 000000000000..15a96ff554b2
--- /dev/null
+++ b/arch/um/include/asm/bitops-x86.h
@@ -0,0 +1 @@
+../../../x86/include/asm/bitops.h
\ No newline at end of file
diff --git a/arch/um/include/asm/bitops.h b/arch/um/include/asm/bitops.h
new file mode 100644
index 000000000000..a0cd978c6aaa
--- /dev/null
+++ b/arch/um/include/asm/bitops.h
@@ -0,0 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef _ASM_UM_BITOPS_H
+#define _ASM_UM_BITOPS_H
+
+#include <asm/bitops-x86.h>
+
+#endif
--
2.20.1
More information about the linux-um
mailing list