Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206148
b: refs/heads/master
c: 9f31f57
h: refs/heads/master
v: v3
  • Loading branch information
John Stultz authored and Thomas Gleixner committed Jul 27, 2010
1 parent 1602e52 commit c721ad7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7615856ebfee52b080c22d263ca4debbd0df0ac1
refs/heads/master: 9f31f5774961a735687fee17953ab505b3df3abf
13 changes: 7 additions & 6 deletions trunk/arch/um/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,17 @@ static void __init setup_itimer(void)
clockevents_register_device(&itimer_clockevent);
}

void read_persistent_clock(struct timespec *ts)
{
nsecs = os_nsecs();
set_normalized_timespec(ts, nsecs / NSEC_PER_SEC,
nsecs % NSEC_PER_SEC);
}

void __init time_init(void)
{
long long nsecs;

timer_init();

nsecs = os_nsecs();
set_normalized_timespec(&wall_to_monotonic, -nsecs / NSEC_PER_SEC,
-nsecs % NSEC_PER_SEC);
set_normalized_timespec(&xtime, nsecs / NSEC_PER_SEC,
nsecs % NSEC_PER_SEC);
late_time_init = setup_itimer;
}

0 comments on commit c721ad7

Please sign in to comment.