[PATCH v4 7/7] um: borrow bitops from the x86 tree

anton.ivanov
2020-12-11T17:46:29Z

From: Anton Ivanov <anton.ivanov@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@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