diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-02-02 14:40:40 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2016-02-23 08:56:17 +0100 |
commit | 2cfc5f9ce7f5e17553e84d36ea9563e677e369d1 (patch) | |
tree | 0a612a3d95c87ca7b72c3cb44574531bbabad2ea /arch/s390/include | |
parent | 9a99649f2a89fdfc9dde5d5401675561567bf99a (diff) | |
download | linux-2cfc5f9ce7f5e17553e84d36ea9563e677e369d1.tar.gz linux-2cfc5f9ce7f5e17553e84d36ea9563e677e369d1.tar.bz2 linux-2cfc5f9ce7f5e17553e84d36ea9563e677e369d1.zip |
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.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/arch/s390/include/asm/xor.h b/arch/s390/include/asm/xor.h index c82eb12a5b18..c988df744a70 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 */ |