Commit d1cd39ad authored by Christoph Lameter's avatar Christoph Lameter Committed by Tejun Heo

MIPS: Replace __get_cpu_var uses in FPU emulator.

The use of __this_cpu_inc() requires a fundamental integer type, so
change the type of all the counters to unsigned long, which is the
same width they were before, but not wrapped in local_t.
Signed-off-by: default avatarDavid Daney <david.daney@cavium.com>
Signed-off-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
parent 06b96c8b
...@@ -33,17 +33,17 @@ ...@@ -33,17 +33,17 @@
#ifdef CONFIG_DEBUG_FS #ifdef CONFIG_DEBUG_FS
struct mips_fpu_emulator_stats { struct mips_fpu_emulator_stats {
local_t emulated; unsigned long emulated;
local_t loads; unsigned long loads;
local_t stores; unsigned long stores;
local_t cp1ops; unsigned long cp1ops;
local_t cp1xops; unsigned long cp1xops;
local_t errors; unsigned long errors;
local_t ieee754_inexact; unsigned long ieee754_inexact;
local_t ieee754_underflow; unsigned long ieee754_underflow;
local_t ieee754_overflow; unsigned long ieee754_overflow;
local_t ieee754_zerodiv; unsigned long ieee754_zerodiv;
local_t ieee754_invalidop; unsigned long ieee754_invalidop;
}; };
DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats);
...@@ -51,7 +51,7 @@ DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats); ...@@ -51,7 +51,7 @@ DECLARE_PER_CPU(struct mips_fpu_emulator_stats, fpuemustats);
#define MIPS_FPU_EMU_INC_STATS(M) \ #define MIPS_FPU_EMU_INC_STATS(M) \
do { \ do { \
preempt_disable(); \ preempt_disable(); \
__local_inc(&__get_cpu_var(fpuemustats).M); \ __this_cpu_inc(fpuemustats.M); \
preempt_enable(); \ preempt_enable(); \
} while (0) } while (0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment