projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.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
|
blame
|
history
diff --git
a/arch/mips/include/asm/fpu_emulator.h
b/arch/mips/include/asm/fpu_emulator.h
index aecada6f61178e8837b7f3ed0688e7e0029a1634..3b4092705567b7b4e65dd2680febc6a5a8e540cc 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)