crypto: aes-ni - Do not sleep when using the FPU
authorHuang Ying <ying.huang@intel.com>
Thu, 18 Jun 2009 11:41:27 +0000 (19:41 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 18 Jun 2009 11:41:27 +0000 (19:41 +0800)
commit9251b64fb2d2326d28f0e0646a9e4fb8bbb51d8e
tree2ef7e20387ee2646679c587abef236100684a7d6
parente6efaa025384f86a18814a6b9f4e5d54484ab9ff
crypto: aes-ni - Do not sleep when using the FPU

Because AES-NI instructions will touch XMM state, corresponding code
must be enclosed within kernel_fpu_begin/end, which used
preempt_disable/enable. So sleep should be prevented between
kernel_fpu_begin/end.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aesni-intel_glue.c