Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c948aca4 authored by Ralf Baechle's avatar Ralf Baechle
Browse files

MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled.



Caused by 38b7827f - no, cpu_local_* was
not unused.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
Cc: Christoph Lameter <cl@linux-foundation.org>
Acked-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
parent 0eddb519
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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)