From: Ralf Baechle Date: Wed, 15 Aug 2012 17:42:19 +0000 (+0200) Subject: MIPS: Fix for warning from FPU emulation code X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~15^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51d943f07d3015998d448f9d8353f618e3fe5873;p=pandora-kernel.git MIPS: Fix for warning from FPU emulation code The default implementation of 'cpu_has_fpu' macro calls smp_processor_id() which causes this warning to be printed when preemption is enabled: [ 4.664000] Algorithmics/MIPS FPU Emulator v1.5 [ 4.676000] BUG: using smp_processor_id() in preemptible [00000000] code: ini [ 4.700000] caller is fpu_emulator_cop1Handler+0x434/0x27b8 This problem got introduced in November 2009 by af1d2af877ef6c36990671bc86a5b9c5bb50b1da (lmo) [MIPS: Fix emulation of 64-bit FPU on 64-bit CPUs.] rsp. da0bac33413b2888d3623dad3ad19ce76b688f07 (kernel.org) [MIPS: Fix emulation of 64-bit FPU on FPU-less 64-bit CPUs.] in 2.6.32. Fixed by rewriting cop1_64bit() to return a constant whenever possible but most importantly avoid the use pf cpu_has_fpu entirely. Signed-off-by: Ralf Baechle Reported-by: Jayachandran C Initial-patch-by: Jayachandran C Patchwork: https://patchwork.linux-mips.org/patch/4225/ --- Reading git-diff-tree failed