Messages in this thread Patch in this message | | | Date | Wed, 18 Jan 2006 17:52:54 +0100 | From | Heiko Carstens <> | Subject | [PATCH 3/7] s390: monotonic_clock interface. |
| |
From: Jan Glauber <jan.glauber@de.ibm.com>
Add monotonic_clock interface, used by the hangcheck-timer. On s390 this is the same as sched_clock().
Signed-off-by: Jan Glauber <jan.glauber@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> ---
arch/s390/kernel/time.c | 9 +++++++++ 1 files changed, 9 insertions(+)
diff -urpN linux-2.6/arch/s390/kernel/time.c linux-2.6-patched/arch/s390/kernel/time.c --- linux-2.6/arch/s390/kernel/time.c 2006-01-18 17:25:50.000000000 +0100 +++ linux-2.6-patched/arch/s390/kernel/time.c 2006-01-18 17:25:50.000000000 +0100 @@ -64,6 +64,15 @@ unsigned long long sched_clock(void) return ((get_clock() - jiffies_timer_cc) * 125) >> 9; } +/* + * Monotonic_clock - returns # of nanoseconds passed since time_init() + */ +unsigned long long monotonic_clock(void) +{ + return sched_clock(); +} +EXPORT_SYMBOL(monotonic_clock); + void tod_to_timeval(__u64 todval, struct timespec *xtime) { unsigned long long sec; - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |