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
4eb02f5e
Commit
4eb02f5e
authored
Nov 25, 2003
by
Pete Zaitcev
Committed by
David S. Miller
Nov 25, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: Add stub sched_clock() implementation.
parent
3c79402a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
arch/sparc/kernel/time.c
arch/sparc/kernel/time.c
+9
-0
No files found.
arch/sparc/kernel/time.c
View file @
4eb02f5e
...
...
@@ -472,6 +472,15 @@ extern __inline__ unsigned long do_gettimeoffset(void)
return
(
*
master_l10_counter
>>
10
)
&
0x1fffff
;
}
/*
* Returns nanoseconds
* XXX This is a suboptimal implementation.
*/
unsigned
long
long
sched_clock
(
void
)
{
return
(
unsigned
long
long
)
jiffies
*
(
1000000000
/
HZ
);
}
/* Ok, my cute asm atomicity trick doesn't work anymore.
* There are just too many variables that need to be protected
* now (both members of xtime, wall_jiffies, et al.)
...
...
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