diff options
| author | Steve French <sfrench@us.ibm.com> | 2006-06-06 22:40:03 -0400 |
|---|---|---|
| committer | Steve French <sfrench@us.ibm.com> | 2006-06-06 22:40:03 -0400 |
| commit | f3ffb6814408f29817fc84d40ecc9c796acaa3ab (patch) | |
| tree | b4702cbdbf2c4517a5986bbaa971495b0f92a877 /arch/um/os-Linux/time.c | |
| parent | 5bafd76593f060540acbea3b61e3087e009aa269 (diff) | |
| parent | 1def630a6a49dda5bc89dfbd86656293640456f0 (diff) | |
Merge with /pub/scm/linux/kernel/git/torvalds/linux-2.6.git
Diffstat (limited to 'arch/um/os-Linux/time.c')
| -rw-r--r-- | arch/um/os-Linux/time.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c index 6f7626775acb..280c4fb9b585 100644 --- a/arch/um/os-Linux/time.c +++ b/arch/um/os-Linux/time.c | |||
| @@ -81,20 +81,12 @@ void uml_idle_timer(void) | |||
| 81 | set_interval(ITIMER_REAL); | 81 | set_interval(ITIMER_REAL); |
| 82 | } | 82 | } |
| 83 | 83 | ||
| 84 | extern void ktime_get_ts(struct timespec *ts); | ||
| 85 | #define do_posix_clock_monotonic_gettime(ts) ktime_get_ts(ts) | ||
| 86 | |||
| 87 | void time_init(void) | 84 | void time_init(void) |
| 88 | { | 85 | { |
| 89 | struct timespec now; | ||
| 90 | |||
| 91 | if(signal(SIGVTALRM, boot_timer_handler) == SIG_ERR) | 86 | if(signal(SIGVTALRM, boot_timer_handler) == SIG_ERR) |
| 92 | panic("Couldn't set SIGVTALRM handler"); | 87 | panic("Couldn't set SIGVTALRM handler"); |
| 93 | set_interval(ITIMER_VIRTUAL); | 88 | set_interval(ITIMER_VIRTUAL); |
| 94 | 89 | time_init_kern(); | |
| 95 | do_posix_clock_monotonic_gettime(&now); | ||
| 96 | wall_to_monotonic.tv_sec = -now.tv_sec; | ||
| 97 | wall_to_monotonic.tv_nsec = -now.tv_nsec; | ||
| 98 | } | 90 | } |
| 99 | 91 | ||
| 100 | unsigned long long os_nsecs(void) | 92 | unsigned long long os_nsecs(void) |
