linux/arch/mips/math-emu
Ralf Baechle 51d943f07d 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.  da0bac3341
(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 <ralf@linux-mips.org>
Reported-by: Jayachandran C <jchandra@broadcom.com>
Initial-patch-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: https://patchwork.linux-mips.org/patch/4225/
2012-12-13 18:15:27 +01:00
..
Makefile MIPS: Add -Werror to arch/mips/Kbuild 2010-08-05 13:25:44 +01:00
cp1emu.c MIPS: Fix for warning from FPU emulation code 2012-12-13 18:15:27 +01:00
dp_add.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_cmp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_div.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_fint.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_flong.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_frexp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_fsp.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dp_logb.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_modf.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_mul.c Fix common misspellings 2011-03-31 11:26:23 -03:00
dp_scalb.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_simple.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_sqrt.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_sub.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_tint.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dp_tlong.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
dsemul.c Disintegrate asm/system.h for MIPS 2012-03-28 18:30:02 +01:00
ieee754.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754.h Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754d.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754dp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754dp.h Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754int.h MIPS: Fix GCC-4.6 'set but not used' warning in ieee754int.h 2011-03-14 21:07:26 +01:00
ieee754m.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754sp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754sp.h Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
ieee754xcpt.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
kernel_linkage.c [MIPS] Fix missing prototypes in asm/fpu.h 2008-07-20 14:38:17 +01:00
sp_add.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_cmp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_div.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_fdp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_fint.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_flong.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_frexp.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_logb.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_modf.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_mul.c Fix common misspellings 2011-03-31 11:26:23 -03:00
sp_scalb.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_simple.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_sqrt.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_sub.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_tint.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00
sp_tlong.c Update broken web addresses in arch directory. 2010-10-18 11:03:21 +02:00