diff mbox series

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

Message ID 20201211174559.26010-8-anton.ivanov@cambridgegreys.com
State Changes Requested
Headers show
Series [v4,1/7] um: allow the use of glibc functions instead of builtins | expand

Commit Message

Anton Ivanov Dec. 11, 2020, 5:45 p.m. UTC
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 mbox series

Patch

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