]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Simplify ptrace_getfpregs FPU IR retrieval
authorPaul Burton <paul.burton@imgtec.com>
Tue, 19 Nov 2013 17:30:36 +0000 (17:30 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 31 Mar 2014 16:17:12 +0000 (18:17 +0200)
commit9023ebce84844a507a38c110411f700e567ef1ba
tree698c8bf58371ff0928397702efc068bfb848c645
parentdf6d0ddf01a9a8d71812c32a1aebcced36b1507f
MIPS: Simplify ptrace_getfpregs FPU IR retrieval

All architecturally defined bits in the FPU implementation register
are read only & unchanging. It contains some implementation-defined
bits but the architecture manual states "This bits are explicitly not
intended to be used for mode control functions" which seems to provide
justification for viewing the register as a whole as unchanging. This
being the case we can simply re-use the value we read at boot rather
than having to re-read it later, and avoid the complexity which that
read entails.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/6147/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/ptrace.c