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
Kirill Smelkov
linux
Commits
0dfed24c
Commit
0dfed24c
authored
Aug 19, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Kill up_clock_tick, use cpu_data().
parent
fdf2c07b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
29 deletions
+4
-29
arch/sparc64/kernel/devices.c
arch/sparc64/kernel/devices.c
+3
-3
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/setup.c
+1
-5
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+0
-17
include/asm-sparc64/timer.h
include/asm-sparc64/timer.h
+0
-4
No files found.
arch/sparc64/kernel/devices.c
View file @
0dfed24c
...
...
@@ -131,9 +131,9 @@ void __init device_scan(void)
prom_printf
(
"No cpu nodes, cannot continue
\n
"
);
prom_halt
();
}
up_
clock_tick
=
prom_getintdefault
(
cpu_node
,
"clock-frequency"
,
0
);
cpu_data
(
0
).
clock_tick
=
prom_getintdefault
(
cpu_node
,
"clock-frequency"
,
0
);
}
#endif
...
...
arch/sparc64/kernel/setup.c
View file @
0dfed24c
...
...
@@ -593,10 +593,6 @@ extern void smp_info(struct seq_file *);
extern
void
smp_bogo
(
struct
seq_file
*
);
extern
void
mmu_info
(
struct
seq_file
*
);
#ifndef CONFIG_SMP
unsigned
long
up_clock_tick
;
#endif
static
int
show_cpuinfo
(
struct
seq_file
*
m
,
void
*
__unused
)
{
seq_printf
(
m
,
...
...
@@ -623,7 +619,7 @@ static int show_cpuinfo(struct seq_file *m, void *__unused)
#ifndef CONFIG_SMP
,
loops_per_jiffy
/
(
500000
/
HZ
),
(
loops_per_jiffy
/
(
5000
/
HZ
))
%
100
,
up_
clock_tick
cpu_data
(
0
).
clock_tick
#endif
);
#ifdef CONFIG_SMP
...
...
arch/sparc64/kernel/time.c
View file @
0dfed24c
...
...
@@ -1013,11 +1013,7 @@ unsigned long sparc64_get_clock_tick(unsigned int cpu)
if
(
ft
->
clock_tick_ref
)
return
ft
->
clock_tick_ref
;
#ifdef CONFIG_SMP
return
cpu_data
(
cpu
).
clock_tick
;
#else
return
up_clock_tick
;
#endif
}
#ifdef CONFIG_CPU_FREQ
...
...
@@ -1029,7 +1025,6 @@ static int sparc64_cpufreq_notifier(struct notifier_block *nb, unsigned long val
unsigned
int
cpu
=
freq
->
cpu
;
struct
freq_table
*
ft
=
&
per_cpu
(
sparc64_freq_table
,
cpu
);
#ifdef CONFIG_SMP
if
(
!
ft
->
ref_freq
)
{
ft
->
ref_freq
=
freq
->
old
;
ft
->
udelay_val_ref
=
cpu_data
(
cpu
).
udelay_val
;
...
...
@@ -1046,18 +1041,6 @@ static int sparc64_cpufreq_notifier(struct notifier_block *nb, unsigned long val
ft
->
ref_freq
,
freq
->
new
);
}
#else
/* In the non-SMP case, kernel/cpufreq.c takes care of adjusting
* loops_per_jiffy.
*/
if
(
!
ft
->
ref_freq
)
{
ft
->
ref_freq
=
freq
->
old
;
ft
->
clock_tick_ref
=
up_clock_tick
;
}
if
((
val
==
CPUFREQ_PRECHANGE
&&
freq
->
old
<
freq
->
new
)
||
(
val
==
CPUFREQ_POSTCHANGE
&&
freq
->
old
>
freq
->
new
))
up_clock_tick
=
cpufreq_scale
(
ft
->
clock_tick_ref
,
ft
->
ref_freq
,
freq
->
new
);
#endif
return
0
;
}
...
...
include/asm-sparc64/timer.h
View file @
0dfed24c
...
...
@@ -69,10 +69,6 @@ struct pt_regs;
extern
void
timer_tick_interrupt
(
struct
pt_regs
*
);
#endif
#ifndef CONFIG_SMP
extern
unsigned
long
up_clock_tick
;
#endif
extern
unsigned
long
sparc64_get_clock_tick
(
unsigned
int
cpu
);
#endif
/* _SPARC64_TIMER_H */
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