All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h
@ 2009-06-11  7:10 ` Huang Ying
  0 siblings, 0 replies; 8+ messages in thread
From: Huang Ying @ 2009-06-11  7:10 UTC (permalink / raw)
  To: Herbert Xu, Ingo Molnar, H. Peter Anvin, Thomas Gleixner
  Cc: linux-kernel, linux-crypto

This is used by AES-NI accelerated AES implementation and PCLMULQDQ
accelerated GHASH implementation.

Signed-off-by: Huang Ying <ying.huang@intel.com>

---
 arch/x86/crypto/aesni-intel_glue.c |    7 -------
 arch/x86/include/asm/i387.h        |    7 +++++++
 2 files changed, 7 insertions(+), 7 deletions(-)

--- a/arch/x86/crypto/aesni-intel_glue.c
+++ b/arch/x86/crypto/aesni-intel_glue.c
@@ -59,13 +59,6 @@ asmlinkage void aesni_cbc_enc(struct cry
 asmlinkage void aesni_cbc_dec(struct crypto_aes_ctx *ctx, u8 *out,
 			      const u8 *in, unsigned int len, u8 *iv);
 
-static inline int kernel_fpu_using(void)
-{
-	if (in_interrupt() && !(read_cr0() & X86_CR0_TS))
-		return 1;
-	return 0;
-}

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-06-18  3:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11  7:10 [RFC 6/7] x86: Move kernel_fpu_using to asm/i387.h Huang Ying
2009-06-11  7:10 ` Huang Ying
2009-06-17 16:46 ` Ingo Molnar
2009-06-17 17:06   ` H. Peter Anvin
2009-06-18  1:48     ` Herbert Xu
2009-06-18  3:51       ` H. Peter Anvin
2009-06-18  1:57     ` Huang Ying
2009-06-18  3:52       ` H. Peter Anvin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.