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
3048a99e
Commit
3048a99e
authored
Mar 18, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Ignore bit 63 of Hummingbird STICK when computing COMPARE register values.
parent
c4f509d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
arch/sparc64/kernel/time.c
arch/sparc64/kernel/time.c
+8
-2
No files found.
arch/sparc64/kernel/time.c
View file @
3048a99e
...
...
@@ -342,14 +342,17 @@ static void __hbird_write_compare(unsigned long val)
static
void
hbtick_init_tick
(
unsigned
long
offset
)
{
unsigned
long
val
;
tick_disable_protection
();
__hbird_write_compare
(
__hbird_read_stick
()
+
offset
);
val
=
__hbird_read_stick
()
&
~
(
1UL
<<
63
);
__hbird_write_compare
(
val
+
offset
);
}
static
unsigned
long
hbtick_get_tick
(
void
)
{
return
__hbird_read_stick
();
return
__hbird_read_stick
()
&
~
(
1UL
<<
63
)
;
}
static
unsigned
long
hbtick_get_compare
(
void
)
...
...
@@ -363,6 +366,8 @@ static unsigned long hbtick_add_tick(unsigned long adj, unsigned long offset)
val
=
__hbird_read_stick
()
+
adj
;
__hbird_write_stick
(
val
);
val
&=
~
(
1UL
<<
63
);
__hbird_write_compare
(
val
+
offset
);
return
val
;
...
...
@@ -372,6 +377,7 @@ static unsigned long hbtick_add_compare(unsigned long adj)
{
unsigned
long
val
=
__hbird_read_compare
()
+
adj
;
val
&=
~
(
1UL
<<
63
);
__hbird_write_compare
(
val
);
return
val
;
...
...
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