From: Alex Smith Date: Wed, 23 Jul 2014 13:40:06 +0000 (+0100) Subject: MIPS: ptrace: Avoid smp_processor_id() when retrieving FPU IR X-Git-Tag: cleanup-for-v3.18~94^2~57 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=656ff9bef08c19a6471b49528dacb4cbbeb1e537;p=pandora-kernel.git MIPS: ptrace: Avoid smp_processor_id() when retrieving FPU IR 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 Cc: # v3.15+ Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7449/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed