Commit 32f65f274602b43e8f48314e9769f254da1d8323

Authored by Jan Glauber
Committed by Linus Torvalds
1 parent 9dbafa5368

[PATCH] s390: monotonic_clock interface

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>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 9 additions and 0 deletions Side-by-side Diff

arch/s390/kernel/time.c
... ... @@ -64,6 +64,15 @@
64 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 76 void tod_to_timeval(__u64 todval, struct timespec *xtime)
68 77 {
69 78 unsigned long long sec;