summaryrefslogtreecommitdiffstats
path: root/arch/s390/include
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2016-02-02 14:40:40 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2016-02-23 08:56:17 +0100
commit2cfc5f9ce7f5e17553e84d36ea9563e677e369d1 (patch)
tree0a612a3d95c87ca7b72c3cb44574531bbabad2ea /arch/s390/include
parent9a99649f2a89fdfc9dde5d5401675561567bf99a (diff)
downloadop-kernel-dev-2cfc5f9ce7f5e17553e84d36ea9563e677e369d1.zip
op-kernel-dev-2cfc5f9ce7f5e17553e84d36ea9563e677e369d1.tar.gz
s390/xor: optimized xor routing using the XC instruction
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include')
-rw-r--r--arch/s390/include/asm/xor.h21
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/s390/include/asm/xor.h b/arch/s390/include/asm/xor.h
index c82eb12..c988df7 100644
--- a/arch/s390/include/asm/xor.h
+++ b/arch/s390/include/asm/xor.h
@@ -1 +1,20 @@
-#include <asm-generic/xor.h>
+/*
+ * Optimited xor routines
+ *
+ * Copyright IBM Corp. 2016
+ * Author(s): Martin Schwidefsky <schwidefsky@de.ibm.com>
+ */
+#ifndef _ASM_S390_XOR_H
+#define _ASM_S390_XOR_H
+
+extern struct xor_block_template xor_block_xc;
+
+#undef XOR_TRY_TEMPLATES
+#define XOR_TRY_TEMPLATES \
+do { \
+ xor_speed(&xor_block_xc); \
+} while (0)
+
+#define XOR_SELECT_TEMPLATE(FASTEST) (&xor_block_xc)
+
+#endif /* _ASM_S390_XOR_H */
OpenPOWER on IntegriCloud