[PATCH 3/7] s390: monotonic_clock interface.

From: Heiko Carstens
Date: Wed Jan 18 2006 - 11:51:50 EST


From: Jan Glauber <jan.glauber@xxxxxxxxxx>

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@xxxxxxxxxx>
Signed-off-by: Martin Schwidefsky <schwidefsky@xxxxxxxxxx>
Signed-off-by: Heiko Carstens <heiko.carstens@xxxxxxxxxx>
---

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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/