mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-07 03:18:31 +00:00
MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled.
Caused by 38b7827fcd
- 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>
This commit is contained in:
parent
0eddb519b9
commit
c948aca4f4
1 changed files with 5 additions and 1 deletions
|
@ -41,7 +41,11 @@ struct mips_fpu_emulator_stats {
|
||||||
DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats);
|
DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats);
|
||||||
|
|
||||||
#define MIPS_FPU_EMU_INC_STATS(M) \
|
#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
|
#else
|
||||||
#define MIPS_FPU_EMU_INC_STATS(M) do { } while (0)
|
#define MIPS_FPU_EMU_INC_STATS(M) do { } while (0)
|
||||||
|
|
Loading…
Reference in a new issue