s390x assembly pack: cache capability query results.
authorAndy Polyakov <appro@openssl.org>
Fri, 15 Apr 2016 14:39:22 +0000 (16:39 +0200)
committerAndy Polyakov <appro@openssl.org>
Mon, 25 Apr 2016 09:54:38 +0000 (11:54 +0200)
commit0b48a24ce993d1a4409d7bde26295f6df0d173cb
tree95b845ef2fb7db4dfae6e4ff964ed94940953501
parent2442382e11c022aaab4fdc6975bd15d5a75c4db2
s390x assembly pack: cache capability query results.

IBM argues that in certain scenarios capability query is really
expensive. At the same time it's asserted that query results can
be safely cached, because disabling CPACF is incompatible with
reboot-free operation.

Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 670ad0fbf6ebcf113e278d8174081a7e2d2fa44c)
crypto/aes/asm/aes-s390x.pl
crypto/modes/asm/ghash-s390x.pl
crypto/s390xcpuid.S
crypto/sha/asm/sha1-s390x.pl
crypto/sha/asm/sha512-s390x.pl