crypto: fpu - Add template for blkcipher touching FPU
authorHuang Ying <ying.huang@intel.com>
Sun, 29 Mar 2009 07:39:02 +0000 (15:39 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 2 Jun 2009 04:04:15 +0000 (14:04 +1000)
commit150c7e85526e80474b87004f4b420e8834fdeb43
tree66ab693aadaacca850f222ac5fa248fddde3ac32
parent505fd21d6138545aa5e96aa738975e6a9deb98a9
crypto: fpu - Add template for blkcipher touching FPU

Blkcipher touching FPU need to be enclosed by kernel_fpu_begin() and
kernel_fpu_end(). If they are invoked in cipher algorithm
implementation, they will be invoked for each block, so that
performance will be hurt, because they are "slow" operations. This
patch implements "fpu" template, which makes these operations to be
invoked for each request.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/Makefile
arch/x86/crypto/fpu.c [new file with mode: 0644]
crypto/Kconfig