Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+5 -1
+5 -1
arch/mips/include/asm/fpu_emulator.h
··· 41 41 DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); 42 42 43 43 #define MIPS_FPU_EMU_INC_STATS(M) \ 44 - cpu_local_wrap(__local_inc(&__get_cpu_var(fpuemustats).M)) 44 + do { \ 45 + preempt_disable(); \ 46 + __local_inc(&__get_cpu_var(fpuemustats).M); \ 47 + preempt_enable(); \ 48 + } while (0) 45 49 46 50 #else 47 51 #define MIPS_FPU_EMU_INC_STATS(M) do { } while (0)