MIPS: ptrace: Avoid smp_processor_id() when retrieving FPU IR

commit 656ff9bef0 upstream.

Whenever ptrace attempts to retrieve the FPU implementation register it
accesses it through current_cpu_data, which calls smp_processor_id().
Since the code may execute with preemption enabled, this can trigger
a warning. Fix this by using boot_cpu_data to get the IR instead.

Signed-off-by: Alex Smith <alex@alex-smith.me.uk>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/7449/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Alex Smith 2014-07-23 14:40:06 +01:00 • committed by Greg Kroah-Hartman
commit 17dcaca5dd
2 changed files with 3 additions and 3 deletions