diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
| commit | 9caafa6c8686e319cf4d5f3757b3972c6c522b7c (patch) | |
| tree | b38979b835b5d22e681b175d0b98a3c7560d9c59 /arch/s390/kernel/time.c | |
| parent | 51e9f2ff83df6b1c81c5c44f4486c68ed87aa20e (diff) | |
| parent | cac0e8e8bb2e7a086643bdd00c41d900a79bb4fa (diff) | |
Merge branch 'upstream-fixes'
Diffstat (limited to 'arch/s390/kernel/time.c')
| -rw-r--r-- | arch/s390/kernel/time.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index 7c0fe152a111..fea043b69b91 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c | |||
| @@ -61,9 +61,18 @@ extern unsigned long wall_jiffies; | |||
| 61 | */ | 61 | */ |
| 62 | unsigned long long sched_clock(void) | 62 | unsigned long long sched_clock(void) |
| 63 | { | 63 | { |
| 64 | return ((get_clock() - jiffies_timer_cc) * 1000) >> 12; | 64 | return ((get_clock() - jiffies_timer_cc) * 125) >> 9; |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | /* | ||
| 68 | * Monotonic_clock - returns # of nanoseconds passed since time_init() | ||
| 69 | */ | ||
| 70 | unsigned long long monotonic_clock(void) | ||
| 71 | { | ||
| 72 | return sched_clock(); | ||
| 73 | } | ||
| 74 | EXPORT_SYMBOL(monotonic_clock); | ||
| 75 | |||
| 67 | void tod_to_timeval(__u64 todval, struct timespec *xtime) | 76 | void tod_to_timeval(__u64 todval, struct timespec *xtime) |
| 68 | { | 77 | { |
| 69 | unsigned long long sec; | 78 | unsigned long long sec; |
