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
51fe6a2b
Commit
51fe6a2b
authored
Jun 14, 2003
by
Andrew Morton
Committed by
Linus Torvalds
Jun 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] ia64: fix do_settimeofday() for new API
parent
0230f93d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
arch/ia64/kernel/time.c
arch/ia64/kernel/time.c
+10
-3
No files found.
arch/ia64/kernel/time.c
View file @
51fe6a2b
...
...
@@ -98,11 +98,14 @@ set_normalized_timespec (struct timespec *ts, time_t sec, long nsec)
ts
->
tv_nsec
=
nsec
;
}
void
do_settimeofday
(
struct
time
val
*
tv
)
int
do_settimeofday
(
struct
time
spec
*
tv
)
{
time_t
wtm_sec
,
sec
=
tv
->
tv_sec
;
long
wtm_nsec
,
nsec
=
tv
->
tv_usec
*
1000
;
long
wtm_nsec
,
nsec
=
tv
->
tv_nsec
;
if
((
unsigned
long
)
tv
->
tv_nsec
>=
NSEC_PER_SEC
)
return
-
EINVAL
;
write_seqlock_irq
(
&
xtime_lock
);
{
...
...
@@ -127,6 +130,7 @@ do_settimeofday (struct timeval *tv)
}
write_sequnlock_irq
(
&
xtime_lock
);
clock_was_set
();
return
0
;
}
void
...
...
@@ -134,6 +138,9 @@ do_gettimeofday (struct timeval *tv)
{
unsigned
long
seq
,
nsec
,
usec
,
sec
,
old
,
offset
;
if
((
unsigned
long
)
tv
->
tv_nsec
>=
NSEC_PER_SEC
)
return
-
EINVAL
;
while
(
1
)
{
seq
=
read_seqbegin
(
&
xtime_lock
);
{
...
...
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