diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-03-08 19:38:13 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2010-04-12 17:26:08 +0100 |
commit | c948aca4f49d94b08c425f65acdaca1d679d6fa7 (patch) | |
tree | 67bd7e0857b1cfdd1d1af1431daafb730decf9dc /arch/mips | |
parent | 0eddb519b9127c73d53db4bf3ec1d45b13f844d1 (diff) | |
download | kernel_goldelico_gta04-c948aca4f49d94b08c425f65acdaca1d679d6fa7.zip kernel_goldelico_gta04-c948aca4f49d94b08c425f65acdaca1d679d6fa7.tar.gz kernel_goldelico_gta04-c948aca4f49d94b08c425f65acdaca1d679d6fa7.tar.bz2 |
MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled.
Caused by 38b7827fcdd660f591d645bd3ae6644456a4773c - no, cpu_local_* was
not unused.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
Acked-by: David Daney <ddaney@caviumnetworks.com>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/include/asm/fpu_emulator.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/mips/include/asm/fpu_emulator.h b/arch/mips/include/asm/fpu_emulator.h index aecada6..3b40927 100644 --- a/arch/mips/include/asm/fpu_emulator.h +++ b/arch/mips/include/asm/fpu_emulator.h @@ -41,7 +41,11 @@ struct mips_fpu_emulator_stats { DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); #define MIPS_FPU_EMU_INC_STATS(M) \ - cpu_local_wrap(__local_inc(&__get_cpu_var(fpuemustats).M)) +do { \ + preempt_disable(); \ + __local_inc(&__get_cpu_var(fpuemustats).M); \ + preempt_enable(); \ +} while (0) #else #define MIPS_FPU_EMU_INC_STATS(M) do { } while (0) |