projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d98f923
)
[MIPS] TX49: Fix use of CDEX build_store_reg()
author
Atsushi Nemoto
<
[email protected]
>
Sun, 17 Dec 2006 15:38:21 +0000
(
00:38
+0900)
committer
Ralf Baechle
<
[email protected]
>
Mon, 8 Jan 2007 21:41:04 +0000
(21:41 +0000)
The commit
a923660d786a53e78834b19062f7af2535f7f8ad
accidently
prevents TX49 from using CDEX. Use build_dst_pref() only if prefetch
for store was really available.
Signed-off-by: Atsushi Nemoto <
[email protected]
>
Signed-off-by: Ralf Baechle <
[email protected]
>
arch/mips/mm/pg-r4k.c
patch
|
blob
|
history
diff --git
a/arch/mips/mm/pg-r4k.c
b/arch/mips/mm/pg-r4k.c
index d41fc5885e875f67ec9de7cf3fc2057b6c7c2419..dc795be62807d1d1bf22af966ad961d0918794bf 100644
(file)
--- a/
arch/mips/mm/pg-r4k.c
+++ b/
arch/mips/mm/pg-r4k.c
@@
-243,11
+243,10
@@
static void __init __build_store_reg(int reg)
static inline void build_store_reg(int reg)
{
- if (cpu_has_prefetch)
- if (reg)
- build_dst_pref(pref_offset_copy);
- else
- build_dst_pref(pref_offset_clear);
+ int pref_off = cpu_has_prefetch ?
+ (reg ? pref_offset_copy : pref_offset_clear) : 0;
+ if (pref_off)
+ build_dst_pref(pref_off);
else if (cpu_has_cache_cdex_s)
build_cdex_s();
else if (cpu_has_cache_cdex_p)