Skip to content

Commit

Permalink
MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled.
Browse files Browse the repository at this point in the history
Caused by 38b7827 - 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>
  • Loading branch information
Ralf Baechle committed Apr 12, 2010
1 parent 0eddb51 commit c948aca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion arch/mips/include/asm/fpu_emulator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c948aca

Please sign in to comment.