|
@@ -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)
|