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
f03b8a54
Commit
f03b8a54
authored
Feb 15, 2006
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Use different cache sizing defaults on SUN4V.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
329c68b2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
14 deletions
+48
-14
arch/sparc64/kernel/devices.c
arch/sparc64/kernel/devices.c
+27
-7
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+21
-7
No files found.
arch/sparc64/kernel/devices.c
View file @
f03b8a54
...
...
@@ -200,7 +200,8 @@ void __init device_scan(void)
#ifndef CONFIG_SMP
{
int
err
,
cpu_node
;
int
err
,
cpu_node
,
def
;
err
=
cpu_find_by_instance
(
0
,
&
cpu_node
,
NULL
);
if
(
err
)
{
prom_printf
(
"No cpu nodes, cannot continue
\n
"
);
...
...
@@ -209,21 +210,40 @@ void __init device_scan(void)
cpu_data
(
0
).
clock_tick
=
prom_getintdefault
(
cpu_node
,
"clock-frequency"
,
0
);
def
=
((
tlb_type
==
hypervisor
)
?
(
8
*
1024
)
:
(
16
*
1024
));
cpu_data
(
0
).
dcache_size
=
prom_getintdefault
(
cpu_node
,
"dcache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
0
).
dcache_line_size
=
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
def
);
def
=
16
*
1024
;
cpu_data
(
0
).
icache_size
=
prom_getintdefault
(
cpu_node
,
"icache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
0
).
icache_line_size
=
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
def
);
def
=
((
tlb_type
==
hypervisor
)
?
(
3
*
1024
*
1024
)
:
(
4
*
1024
*
1024
));
cpu_data
(
0
).
ecache_size
=
prom_getintdefault
(
cpu_node
,
"ecache-size"
,
4
*
1024
*
1024
);
def
);
def
=
64
;
cpu_data
(
0
).
ecache_line_size
=
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
64
);
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
def
);
printk
(
"CPU[0]: Caches "
"D[sz(%d):line_sz(%d)] "
"I[sz(%d):line_sz(%d)] "
...
...
arch/sparc64/kernel/smp.c
View file @
f03b8a54
...
...
@@ -78,7 +78,7 @@ void smp_bogo(struct seq_file *m)
void
__init
smp_store_cpu_info
(
int
id
)
{
int
cpu_node
;
int
cpu_node
,
def
;
/* multiplier and counter set by
smp_setup_percpu_timer() */
...
...
@@ -90,18 +90,32 @@ void __init smp_store_cpu_info(int id)
cpu_data
(
id
).
idle_volume
=
1
;
def
=
((
tlb_type
==
hypervisor
)
?
(
8
*
1024
)
:
(
16
*
1024
));
cpu_data
(
id
).
dcache_size
=
prom_getintdefault
(
cpu_node
,
"dcache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
id
).
dcache_line_size
=
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"dcache-line-size"
,
def
);
def
=
16
*
1024
;
cpu_data
(
id
).
icache_size
=
prom_getintdefault
(
cpu_node
,
"icache-size"
,
16
*
1024
);
def
);
def
=
32
;
cpu_data
(
id
).
icache_line_size
=
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
32
);
prom_getintdefault
(
cpu_node
,
"icache-line-size"
,
def
);
def
=
((
tlb_type
==
hypervisor
)
?
(
3
*
1024
*
1024
)
:
(
4
*
1024
*
1024
));
cpu_data
(
id
).
ecache_size
=
prom_getintdefault
(
cpu_node
,
"ecache-size"
,
4
*
1024
*
1024
);
def
);
def
=
64
;
cpu_data
(
id
).
ecache_line_size
=
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
64
);
prom_getintdefault
(
cpu_node
,
"ecache-line-size"
,
def
);
printk
(
"CPU[%d]: Caches "
"D[sz(%d):line_sz(%d)] "
"I[sz(%d):line_sz(%d)] "
...
...
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