[PATCH 001/003] Export ktime_get_ts()
From: Matt Helsley
Date: Wed Dec 14 2005 - 23:36:27 EST
Export ktime_get_ts() to be used as a timestamp function since it
uses getnstimefoday() and does the wall_to_monotonic adjustment.
Signed-off-by: Matt Helsley <matthltc@xxxxxxxxxx>
--
Index: linux-2.6.15-rc5-mm1/kernel/hrtimer.c
===================================================================
--- linux-2.6.15-rc5-mm1.orig/kernel/hrtimer.c
+++ linux-2.6.15-rc5-mm1/kernel/hrtimer.c
@@ -106,10 +106,11 @@ void ktime_get_ts(struct timespec *ts)
} while (read_seqretry(&xtime_lock, seq));
set_normalized_timespec(ts, ts->tv_sec + tomono.tv_sec,
ts->tv_nsec + tomono.tv_nsec);
}
+EXPORT_SYMBOL_GPL(ktime_get_ts);
/*
* Functions and macros which are different for UP/SMP systems are kept in a
* single place
*/
-
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/