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
1e6263c6
Commit
1e6263c6
authored
May 17, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Provide a rough cache_decay_ticks.
parent
f048bb4b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+6
-6
include/asm-ppc64/timex.h
include/asm-ppc64/timex.h
+0
-1
No files found.
arch/ppc64/kernel/smp.c
View file @
1e6263c6
...
@@ -58,7 +58,6 @@ volatile int smp_commenced = 0;
...
@@ -58,7 +58,6 @@ volatile int smp_commenced = 0;
int
smp_num_cpus
=
1
;
int
smp_num_cpus
=
1
;
int
smp_tb_synchronized
=
0
;
int
smp_tb_synchronized
=
0
;
spinlock_t
kernel_flag
__cacheline_aligned
=
SPIN_LOCK_UNLOCKED
;
spinlock_t
kernel_flag
__cacheline_aligned
=
SPIN_LOCK_UNLOCKED
;
cycles_t
cacheflush_time
;
unsigned
long
cache_decay_ticks
;
unsigned
long
cache_decay_ticks
;
static
int
max_cpus
__initdata
=
NR_CPUS
;
static
int
max_cpus
__initdata
=
NR_CPUS
;
...
@@ -595,12 +594,13 @@ void __init smp_boot_cpus(void)
...
@@ -595,12 +594,13 @@ void __init smp_boot_cpus(void)
}
}
/*
/*
* XXX very rough
, assumes 20 bus cycles to read a cache line,
* XXX very rough
. On POWER4 we optimise tlb flushes for
* t
imebase increments every 4 bus cycles, 32kB L1 data cache
.
* t
asks that only run on one cpu so we increase decay ticks
.
*/
*/
cacheflush_time
=
5
*
1024
;
if
(
__is_processor
(
PV_POWER4
))
/* XXX - Fix - Anton */
cache_decay_ticks
=
HZ
/
50
;
cache_decay_ticks
=
0
;
else
cache_decay_ticks
=
HZ
/
100
;
/* Probe arch for CPUs */
/* Probe arch for CPUs */
cpu_nr
=
ppc_md
.
smp_probe
();
cpu_nr
=
ppc_md
.
smp_probe
();
...
...
include/asm-ppc64/timex.h
View file @
1e6263c6
...
@@ -18,7 +18,6 @@
...
@@ -18,7 +18,6 @@
<< (SHIFT_SCALE-SHIFT_HZ)) / HZ)
<< (SHIFT_SCALE-SHIFT_HZ)) / HZ)
typedef
unsigned
long
cycles_t
;
typedef
unsigned
long
cycles_t
;
extern
cycles_t
cacheflush_time
;
static
inline
cycles_t
get_cycles
(
void
)
static
inline
cycles_t
get_cycles
(
void
)
{
{
...
...
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