diff options
author | Hendrik Brueckner <brueckner@linux.vnet.ibm.com> | 2015-02-19 17:34:07 +0100 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2015-07-22 09:58:02 +0200 |
commit | d05377c12ae2ac88e747a28ae1e23f556d549592 (patch) | |
tree | dc1bede961f295f658e59730a47909cc2b1fc121 /arch/s390/crypto/ghash_s390.c | |
parent | 8f00b3e28f73e712a2f82a15f66acd852f60e3ba (diff) | |
download | linux-stable-d05377c12ae2ac88e747a28ae1e23f556d549592.tar.gz linux-stable-d05377c12ae2ac88e747a28ae1e23f556d549592.tar.bz2 linux-stable-d05377c12ae2ac88e747a28ae1e23f556d549592.zip |
s390/crypto: add cpu feature modaliases for crypto modules
Use the module_cpu_feature_match() module init function to add an
module alias based on required CPU features. The modules are
automatically loaded on hardware that supports the required CPU features.
Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/crypto/ghash_s390.c')
-rw-r--r-- | arch/s390/crypto/ghash_s390.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/s390/crypto/ghash_s390.c b/arch/s390/crypto/ghash_s390.c index b258110da952..26e14efd30a7 100644 --- a/arch/s390/crypto/ghash_s390.c +++ b/arch/s390/crypto/ghash_s390.c @@ -9,6 +9,7 @@ #include <crypto/internal/hash.h> #include <linux/module.h> +#include <linux/cpufeature.h> #include "crypt_s390.h" @@ -158,7 +159,7 @@ static void __exit ghash_mod_exit(void) crypto_unregister_shash(&ghash_alg); } -module_init(ghash_mod_init); +module_cpu_feature_match(MSA, ghash_mod_init); module_exit(ghash_mod_exit); MODULE_ALIAS_CRYPTO("ghash"); |