diff options
author | Kevin Cernekee <cernekee@gmail.com> | 2010-05-02 14:43:52 -0700 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-05-21 21:31:17 +0100 |
commit | 0103d23f44b1e9f8d2e89cc197e21192f6914f24 (patch) | |
tree | a5be6db45c86235702e10edd64a62bdd7072e40d /arch/mips/kernel/setup.c | |
parent | 4f1e099582c119cf73d6a873b53e8edaa773d065 (diff) | |
download | kernel_samsung_tuna-0103d23f44b1e9f8d2e89cc197e21192f6914f24.zip kernel_samsung_tuna-0103d23f44b1e9f8d2e89cc197e21192f6914f24.tar.gz kernel_samsung_tuna-0103d23f44b1e9f8d2e89cc197e21192f6914f24.tar.bz2 |
MIPS: nofpu and nodsp only affect CPU0
The "nofpu" and "nodsp" kernel command line options currently do not
affect CPUs that are brought online later in the boot process or
hotplugged at runtime. It is desirable to apply the nofpu/nodsp options
to all CPUs in the system, so that surprising results are not seen when
a process migrates from one CPU to another.
[Ralf: Moved definitions of mips_fpu_disabled, fpu_disable,
mips_dsp_disabled and dsp_disable from setup.c to cpu-probe.c to allow
making mips_fpu_disabled and mips_dsp_disabled static.]
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: http://patchwork.linux-mips.org/patch/1169/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/setup.c')
-rw-r--r-- | arch/mips/kernel/setup.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index f9513f9..85aef3f 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -569,27 +569,6 @@ void __init setup_arch(char **cmdline_p) plat_smp_setup(); } -static int __init fpu_disable(char *s) -{ - int i; - - for (i = 0; i < NR_CPUS; i++) - cpu_data[i].options &= ~MIPS_CPU_FPU; - - return 1; -} - -__setup("nofpu", fpu_disable); - -static int __init dsp_disable(char *s) -{ - cpu_data[0].ases &= ~MIPS_ASE_DSP; - - return 1; -} - -__setup("nodsp", dsp_disable); - unsigned long kernelsp[NR_CPUS]; unsigned long fw_arg0, fw_arg1, fw_arg2, fw_arg3; |