crypto: sha256_ssse3 - also test for BMI2
authorOliver Neukum <oneukum@suse.de>
Tue, 1 Oct 2013 12:34:46 +0000 (14:34 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Oct 2013 06:17:10 +0000 (14:17 +0800)
commit16c0c4e1656c14ef9deac189a4240b5ca19c6919
tree6d5cc74603a36d626dbf3aa6a685e015ce69da6e
parent165c70f07fee46abcbdbb885f8e90388dbe7ce60
crypto: sha256_ssse3 - also test for BMI2

The AVX2 implementation also uses BMI2 instructions,
but doesn't test for their availability. The assumption
that AVX2 and BMI2 always go together is false. Some
Haswells have AVX2 but not BMI2.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/sha256_ssse3_glue.c