Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
27a511c6
Commit
27a511c6
authored
Nov 10, 2007
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Disable initial cache flush on
SH-5
.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
c881cbc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
14 deletions
+18
-14
arch/sh/kernel/cpu/init.c
arch/sh/kernel/cpu/init.c
+18
-14
No files found.
arch/sh/kernel/cpu/init.c
View file @
27a511c6
...
...
@@ -63,24 +63,11 @@ static void __init speculative_execution_init(void)
/*
* Generic first-level cache init
*/
#ifdef CONFIG_SUPERH32
static
void
__init
cache_init
(
void
)
{
unsigned
long
ccr
,
flags
;
/* First setup the rest of the I-cache info */
current_cpu_data
.
icache
.
entry_mask
=
current_cpu_data
.
icache
.
way_incr
-
current_cpu_data
.
icache
.
linesz
;
current_cpu_data
.
icache
.
way_size
=
current_cpu_data
.
icache
.
sets
*
current_cpu_data
.
icache
.
linesz
;
/* And the D-cache too */
current_cpu_data
.
dcache
.
entry_mask
=
current_cpu_data
.
dcache
.
way_incr
-
current_cpu_data
.
dcache
.
linesz
;
current_cpu_data
.
dcache
.
way_size
=
current_cpu_data
.
dcache
.
sets
*
current_cpu_data
.
dcache
.
linesz
;
jump_to_P2
();
ccr
=
ctrl_inl
(
CCR
);
...
...
@@ -160,6 +147,9 @@ static void __init cache_init(void)
ctrl_outl
(
flags
,
CCR
);
back_to_P1
();
}
#else
#define cache_init() do { } while (0)
#endif
#ifdef CONFIG_SH_DSP
static
void
__init
release_dsp
(
void
)
...
...
@@ -230,6 +220,20 @@ asmlinkage void __cpuinit sh_cpu_init(void)
if
(
current_cpu_data
.
type
==
CPU_SH_NONE
)
panic
(
"Unknown CPU"
);
/* First setup the rest of the I-cache info */
current_cpu_data
.
icache
.
entry_mask
=
current_cpu_data
.
icache
.
way_incr
-
current_cpu_data
.
icache
.
linesz
;
current_cpu_data
.
icache
.
way_size
=
current_cpu_data
.
icache
.
sets
*
current_cpu_data
.
icache
.
linesz
;
/* And the D-cache too */
current_cpu_data
.
dcache
.
entry_mask
=
current_cpu_data
.
dcache
.
way_incr
-
current_cpu_data
.
dcache
.
linesz
;
current_cpu_data
.
dcache
.
way_size
=
current_cpu_data
.
dcache
.
sets
*
current_cpu_data
.
dcache
.
linesz
;
/* Init the cache */
cache_init
();
...
...
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