summaryrefslogtreecommitdiff
path: root/arch/s390/crypto/chacha-glue.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2022-07-13 14:56:42 +0200
committerAlexander Gordeev <agordeev@linux.ibm.com>2022-07-19 16:18:49 +0200
commit0a5f9b382c6131381f9f2ed64ae6fdd994328d0d (patch)
tree10975615394744fcc4d89dccf0ccd7bb314fe403 /arch/s390/crypto/chacha-glue.c
parent693714b900cea5417d7b3a48891b961d40fb5c55 (diff)
s390/cpufeature: rework to allow more than only hwcap bits
Rework cpufeature implementation to allow for various cpu feature indications, which is not only limited to hwcap bits. This is achieved by adding a sequential list of cpu feature numbers, where each of them is mapped to an entry which indicates what this number is about. Each entry contains a type member, which indicates what feature name space to look into (e.g. hwcap, or cpu facility). If wanted this allows also to automatically load modules only in e.g. z/VM configurations. Signed-off-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Reviewed-by: Hendrik Brueckner <brueckner@linux.ibm.com> Link: https://lore.kernel.org/r/20220713125644.16121-2-seiden@linux.ibm.com Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390/crypto/chacha-glue.c')
-rw-r--r--arch/s390/crypto/chacha-glue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/crypto/chacha-glue.c b/arch/s390/crypto/chacha-glue.c
index 2ec51f339cec..7752bd314558 100644
--- a/arch/s390/crypto/chacha-glue.c
+++ b/arch/s390/crypto/chacha-glue.c
@@ -121,7 +121,7 @@ static void __exit chacha_mod_fini(void)
crypto_unregister_skciphers(chacha_algs, ARRAY_SIZE(chacha_algs));
}
-module_cpu_feature_match(VXRS, chacha_mod_init);
+module_cpu_feature_match(S390_CPU_FEATURE_VXRS, chacha_mod_init);
module_exit(chacha_mod_fini);
MODULE_DESCRIPTION("ChaCha20 stream cipher");