projects
/
platform
/
kernel
/
linux-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0eddb51
)
MIPS: Fix build breakage if CONFIG_DEBUG_FS is enabled.
author
Ralf Baechle
<ralf@linux-mips.org>
Mon, 8 Mar 2010 18:38:13 +0000
(19:38 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 12 Apr 2010 16:26:08 +0000
(17:26 +0100)
Caused by
38b7827fcdd660f591d645bd3ae6644456a4773c
- 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>
arch/mips/include/asm/fpu_emulator.h
patch
|
blob
|
history
diff --git
a/arch/mips/include/asm/fpu_emulator.h
b/arch/mips/include/asm/fpu_emulator.h
index
aecada6
..
3b40927
100644
(file)
--- a/
arch/mips/include/asm/fpu_emulator.h
+++ b/
arch/mips/include/asm/fpu_emulator.h
@@
-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)