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
fc51299f
Commit
fc51299f
authored
Mar 11, 2003
by
David S. Miller
Committed by
David S. Miller
Mar 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Kill SPARC64_USE_STICK and use real timer drivers.
parent
b13e3088
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
267 additions
and
348 deletions
+267
-348
arch/sparc64/kernel/irq.c
arch/sparc64/kernel/irq.c
+1
-5
arch/sparc64/kernel/smp.c
arch/sparc64/kernel/smp.c
+36
-199
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+216
-139
arch/sparc64/mm/ultra.S
arch/sparc64/mm/ultra.S
+3
-3
include/asm-sparc64/spitfire.h
include/asm-sparc64/spitfire.h
+0
-2
include/asm-sparc64/timer.h
include/asm-sparc64/timer.h
+11
-0
No files found.
arch/sparc64/kernel/irq.c
View file @
fc51299f
...
...
@@ -719,12 +719,8 @@ void handler_irq(int irq, struct pt_regs *regs)
*/
{
unsigned
long
clr_mask
=
1
<<
irq
;
unsigned
long
tick_mask
;
unsigned
long
tick_mask
=
tick_ops
->
softint_mask
;
if
(
SPARC64_USE_STICK
)
tick_mask
=
(
1UL
<<
16
);
else
tick_mask
=
(
1UL
<<
0
);
if
((
irq
==
14
)
&&
(
get_softint
()
&
tick_mask
))
{
irq
=
0
;
clr_mask
=
tick_mask
;
...
...
arch/sparc64/kernel/smp.c
View file @
fc51299f
This diff is collapsed.
Click to expand it.
arch/sparc64/kernel/time.c
View file @
fc51299f
This diff is collapsed.
Click to expand it.
arch/sparc64/mm/ultra.S
View file @
fc51299f
...
...
@@ -560,8 +560,8 @@ xcall_flush_tlb_kernel_range:
/
*
This
runs
in
a
very
controlled
environment
,
so
we
do
*
not
need
to
worry
about
BH
races
etc
.
*/
.
globl
xcall_sync_
s
tick
xcall_sync_
s
tick
:
.
globl
xcall_sync_tick
xcall_sync_tick
:
rdpr
%
pstate
,
%
g2
wrpr
%
g2
,
PSTATE_IG
|
PSTATE_AG
,
%
pstate
rdpr
%
pil
,
%
g2
...
...
@@ -569,7 +569,7 @@ xcall_sync_stick:
sethi
%
hi
(
109
f
),
%
g7
b
,
pt
%
xcc
,
etrap_irq
109
:
or
%
g7
,
%
lo
(
109
b
),
%
g7
call
smp_synchronize_
s
tick_client
call
smp_synchronize_tick_client
nop
clr
%
l6
b
rtrap_xcall
...
...
include/asm-sparc64/spitfire.h
View file @
fc51299f
...
...
@@ -45,8 +45,6 @@ enum ultra_tlb_layout {
extern
enum
ultra_tlb_layout
tlb_type
;
#define SPARC64_USE_STICK (tlb_type != spitfire)
#define CHEETAH_HIGHEST_LOCKED_TLBENT (16 - 1)
#define L1DCACHE_SIZE 0x4000
...
...
include/asm-sparc64/timer.h
View file @
fc51299f
...
...
@@ -50,6 +50,17 @@ struct sun5_timer {
*/
#define SUN5_HZ_TO_LIMIT(__hz) (1000000/(__hz))
struct
sparc64_tick_ops
{
void
(
*
init_tick
)(
unsigned
long
);
unsigned
long
(
*
get_tick
)(
void
);
unsigned
long
(
*
get_compare
)(
void
);
unsigned
long
(
*
add_tick
)(
unsigned
long
,
unsigned
long
);
unsigned
long
(
*
add_compare
)(
unsigned
long
);
unsigned
long
softint_mask
;
};
extern
struct
sparc64_tick_ops
*
tick_ops
;
#ifdef CONFIG_SMP
extern
unsigned
long
timer_tick_offset
;
extern
void
timer_tick_interrupt
(
struct
pt_regs
*
);
...
...
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