[PATCH] s390: monotonic_clock interface
authorJan Glauber <[email protected]>
Wed, 1 Feb 2006 11:06:33 +0000 (03:06 -0800)
committerLinus Torvalds <[email protected]>
Wed, 1 Feb 2006 16:53:24 +0000 (08:53 -0800)
Add monotonic_clock interface, used by the hangcheck-timer.  On s390 this is
the same as sched_clock().

Signed-off-by: Jan Glauber <[email protected]>
Signed-off-by: Martin Schwidefsky <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/s390/kernel/time.c

index efba91b015be73a8284ba98c5ee02e3a99030c84..fea043b69b913953c95d5c9ab97307d26e0083c5 100644 (file)
@@ -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;