Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
fc5d2d27
Commit
fc5d2d27
authored
Jul 06, 2006
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MIPS] Use the proper technical term for naming some of the cache macros.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
879ba8c8
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
18 additions
and
18 deletions
+18
-18
arch/mips/mm/c-r4k.c
arch/mips/mm/c-r4k.c
+4
-4
include/asm-mips/cpu-features.h
include/asm-mips/cpu-features.h
+2
-2
include/asm-mips/cpu.h
include/asm-mips/cpu.h
+1
-1
include/asm-mips/mach-cobalt/cpu-feature-overrides.h
include/asm-mips/mach-cobalt/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-excite/cpu-feature-overrides.h
include/asm-mips/mach-excite/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-ip27/cpu-feature-overrides.h
include/asm-mips/mach-ip27/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-ja/cpu-feature-overrides.h
include/asm-mips/mach-ja/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-mips/cpu-feature-overrides.h
include/asm-mips/mach-mips/cpu-feature-overrides.h
+2
-2
include/asm-mips/mach-ocelot3/cpu-feature-overrides.h
include/asm-mips/mach-ocelot3/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-sibyte/cpu-feature-overrides.h
include/asm-mips/mach-sibyte/cpu-feature-overrides.h
+1
-1
include/asm-mips/mach-sim/cpu-feature-overrides.h
include/asm-mips/mach-sim/cpu-feature-overrides.h
+2
-2
include/asm-mips/mach-yosemite/cpu-feature-overrides.h
include/asm-mips/mach-yosemite/cpu-feature-overrides.h
+1
-1
No files found.
arch/mips/mm/c-r4k.c
View file @
fc5d2d27
...
@@ -578,7 +578,7 @@ static inline void local_r4k_flush_icache_page(void *args)
...
@@ -578,7 +578,7 @@ static inline void local_r4k_flush_icache_page(void *args)
* secondary cache will result in any entries in the primary caches
* secondary cache will result in any entries in the primary caches
* also getting invalidated which hopefully is a bit more economical.
* also getting invalidated which hopefully is a bit more economical.
*/
*/
if
(
cpu_has_
subset
_pcaches
)
{
if
(
cpu_has_
inclusive
_pcaches
)
{
unsigned
long
addr
=
(
unsigned
long
)
page_address
(
page
);
unsigned
long
addr
=
(
unsigned
long
)
page_address
(
page
);
r4k_blast_scache_page
(
addr
);
r4k_blast_scache_page
(
addr
);
...
@@ -634,7 +634,7 @@ static void r4k_dma_cache_wback_inv(unsigned long addr, unsigned long size)
...
@@ -634,7 +634,7 @@ static void r4k_dma_cache_wback_inv(unsigned long addr, unsigned long size)
/* Catch bad driver code */
/* Catch bad driver code */
BUG_ON
(
size
==
0
);
BUG_ON
(
size
==
0
);
if
(
cpu_has_
subset
_pcaches
)
{
if
(
cpu_has_
inclusive
_pcaches
)
{
if
(
size
>=
scache_size
)
if
(
size
>=
scache_size
)
r4k_blast_scache
();
r4k_blast_scache
();
else
else
...
@@ -662,7 +662,7 @@ static void r4k_dma_cache_inv(unsigned long addr, unsigned long size)
...
@@ -662,7 +662,7 @@ static void r4k_dma_cache_inv(unsigned long addr, unsigned long size)
/* Catch bad driver code */
/* Catch bad driver code */
BUG_ON
(
size
==
0
);
BUG_ON
(
size
==
0
);
if
(
cpu_has_
subset
_pcaches
)
{
if
(
cpu_has_
inclusive
_pcaches
)
{
if
(
size
>=
scache_size
)
if
(
size
>=
scache_size
)
r4k_blast_scache
();
r4k_blast_scache
();
else
else
...
@@ -1192,7 +1192,7 @@ static void __init setup_scache(void)
...
@@ -1192,7 +1192,7 @@ static void __init setup_scache(void)
printk
(
"Unified secondary cache %ldkB %s, linesize %d bytes.
\n
"
,
printk
(
"Unified secondary cache %ldkB %s, linesize %d bytes.
\n
"
,
scache_size
>>
10
,
way_string
[
c
->
scache
.
ways
],
c
->
scache
.
linesz
);
scache_size
>>
10
,
way_string
[
c
->
scache
.
ways
],
c
->
scache
.
linesz
);
c
->
options
|=
MIPS_CPU_
SUBSET
_CACHES
;
c
->
options
|=
MIPS_CPU_
INCLUSIVE
_CACHES
;
}
}
void
au1x00_fixup_config_od
(
void
)
void
au1x00_fixup_config_od
(
void
)
...
...
include/asm-mips/cpu-features.h
View file @
fc5d2d27
...
@@ -195,8 +195,8 @@
...
@@ -195,8 +195,8 @@
# define cpu_has_veic 0
# define cpu_has_veic 0
#endif
#endif
#ifndef cpu_has_
subset
_pcaches
#ifndef cpu_has_
inclusive
_pcaches
#define cpu_has_
subset_pcaches (cpu_data[0].options & MIPS_CPU_SUBSET
_CACHES)
#define cpu_has_
inclusive_pcaches (cpu_data[0].options & MIPS_CPU_INCLUSIVE
_CACHES)
#endif
#endif
#ifndef cpu_dcache_line_size
#ifndef cpu_dcache_line_size
...
...
include/asm-mips/cpu.h
View file @
fc5d2d27
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
#define MIPS_CPU_EJTAG 0x00008000
/* EJTAG exception */
#define MIPS_CPU_EJTAG 0x00008000
/* EJTAG exception */
#define MIPS_CPU_NOFPUEX 0x00010000
/* no FPU exception */
#define MIPS_CPU_NOFPUEX 0x00010000
/* no FPU exception */
#define MIPS_CPU_LLSC 0x00020000
/* CPU has ll/sc instructions */
#define MIPS_CPU_LLSC 0x00020000
/* CPU has ll/sc instructions */
#define MIPS_CPU_
SUBSET
_CACHES 0x00040000
/* P-cache subset enforced */
#define MIPS_CPU_
INCLUSIVE
_CACHES 0x00040000
/* P-cache subset enforced */
#define MIPS_CPU_PREFETCH 0x00080000
/* CPU has usable prefetch */
#define MIPS_CPU_PREFETCH 0x00080000
/* CPU has usable prefetch */
#define MIPS_CPU_VINT 0x00100000
/* CPU supports MIPSR2 vectored interrupts */
#define MIPS_CPU_VINT 0x00100000
/* CPU supports MIPSR2 vectored interrupts */
#define MIPS_CPU_VEIC 0x00200000
/* CPU supports MIPSR2 external interrupt controller mode */
#define MIPS_CPU_VEIC 0x00200000
/* CPU supports MIPSR2 external interrupt controller mode */
...
...
include/asm-mips/mach-cobalt/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
#define cpu_has_mcheck 0
#define cpu_has_mcheck 0
#define cpu_has_ejtag 0
#define cpu_has_ejtag 0
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_scache_line_size() 0
#define cpu_scache_line_size() 0
...
...
include/asm-mips/mach-excite/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_64bits 1
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
...
...
include/asm-mips/mach-ip27/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#define cpu_has_4kex 1
#define cpu_has_4kex 1
#define cpu_has_4k_cache 1
#define cpu_has_4k_cache 1
#define cpu_has_
subset
_pcaches 1
#define cpu_has_
inclusive
_pcaches 1
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 64
#define cpu_icache_line_size() 64
...
...
include/asm-mips/mach-ja/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_64bits 1
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
...
...
include/asm-mips/mach-mips/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_
subset
_pcaches ? */
/* #define cpu_has_
inclusive
_pcaches ? */
#define cpu_icache_snoops_remote_store 1
#define cpu_icache_snoops_remote_store 1
#endif
#endif
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_
subset
_pcaches ? */
/* #define cpu_has_
inclusive
_pcaches ? */
#define cpu_icache_snoops_remote_store 1
#define cpu_icache_snoops_remote_store 1
#endif
#endif
...
...
include/asm-mips/mach-ocelot3/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_64bits 1
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
...
...
include/asm-mips/mach-sibyte/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_64bits 1
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
...
...
include/asm-mips/mach-sim/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_
subset
_pcaches ? */
/* #define cpu_has_
inclusive
_pcaches ? */
#endif
#endif
#ifdef CONFIG_CPU_MIPS64
#ifdef CONFIG_CPU_MIPS64
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bits ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_64bit_zero_reg ? */
/* #define cpu_has_
subset
_pcaches ? */
/* #define cpu_has_
inclusive
_pcaches ? */
#endif
#endif
#endif
/* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */
#endif
/* __ASM_MACH_MIPS_CPU_FEATURE_OVERRIDES_H */
include/asm-mips/mach-yosemite/cpu-feature-overrides.h
View file @
fc5d2d27
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
#define cpu_has_nofpuex 0
#define cpu_has_nofpuex 0
#define cpu_has_64bits 1
#define cpu_has_64bits 1
#define cpu_has_
subset
_pcaches 0
#define cpu_has_
inclusive
_pcaches 0
#define cpu_dcache_line_size() 32
#define cpu_dcache_line_size() 32
#define cpu_icache_line_size() 32
#define cpu_icache_line_size() 32
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment