From: Ralf Baechle Date: Mon, 8 Mar 2010 18:38:13 +0000 (+0100) Subject: MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled. X-Git-Tag: MMI-PSA29.97-13-9~24152^2~35 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c948aca4f49d94b08c425f65acdaca1d679d6fa7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled. Caused by 38b7827fcdd660f591d645bd3ae6644456a4773c - no, cpu_local_* was not unused. Signed-off-by: Ralf Baechle Cc: Christoph Lameter Acked-by: David Daney --- diff --git a/arch/mips/include/asm/fpu_emulator.h b/arch/mips/include/asm/fpu_emulator.h index aecada6f6117..3b4092705567 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)