[MIPS] Cleanup FPU ownership management
commitfc1ac60f7532ff5472fa8720a12ff4ccaa079ee0
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Sat, 10 Mar 2007 14:54:14 +0000 (10 23:54 +0900)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 12 Mar 2007 16:17:16 +0000 (12 16:17 +0000)
tree0dda76cf7c58d175be38bff1be2902a534248905
parentbd7b36ab55b59ab47d6bedd9fabb7d417371fa9f
[MIPS] Cleanup FPU ownership management

Currently preempt_disable/preempt_enable are scattered in FPU
ownership management code.  This patch makes own_fpu() and lose_fpu()
can save/restore FPU context in itself and make these functions (and
init_fpu() too) preempt-proof.  This makes the FPU management codes
much readable.  Also this patch introduce raw_cpu_has_fpu macro which
is to be used if the caller did not need atomic context.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/signal.c
arch/mips/kernel/signal32.c
arch/mips/kernel/traps.c
include/asm-mips/cpu-features.h
include/asm-mips/cpu-info.h
include/asm-mips/fpu.h