From: Huang Ying Date: Mon, 31 Aug 2009 05:11:54 +0000 (+0800) Subject: x86: Move kernel_fpu_using to irq_fpu_usable in asm/i387.h X-Git-Tag: v2.6.32-rc1~711^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae4b688db2432baad379f73fdcac13ec24f603d5;p=pandora-kernel.git x86: Move kernel_fpu_using to irq_fpu_usable in asm/i387.h This function measures whether the FPU/SSE state can be touched in interrupt context. If the interrupted code is in user space or has no valid FPU/SSE context (CR0.TS == 1), FPU/SSE state can be used in IRQ or soft_irq context too. This is used by AES-NI accelerated AES implementation and PCLMULQDQ accelerated GHASH implementation. v3: - Renamed to irq_fpu_usable to reflect the purpose of the function. v2: - Renamed to irq_is_fpu_using to reflect the real situation. Signed-off-by: Huang Ying CC: H. Peter Anvin Signed-off-by: H. Peter Anvin --- Reading git-diff-tree failed