patch-2.1.9 linux/kernel/time.c
Next file: linux/mm/filemap.c
Previous file: linux/kernel/ksyms.c
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Mon Nov 11 15:38:07 1996
- Orig file:
v2.1.8/linux/kernel/time.c
- Orig date:
Tue Oct 29 19:58:48 1996
diff -u --recursive --new-file v2.1.8/linux/kernel/time.c linux/kernel/time.c
@@ -34,6 +34,24 @@
*/
struct timezone sys_tz = { 0, 0};
+static void do_normal_gettime(struct timeval * tm)
+{
+ *tm=xtime;
+}
+
+void (*do_get_fast_time)(struct timeval *) = do_normal_gettime;
+
+/*
+ * Generic way to access 'xtime' (the current time of day).
+ * This can be changed if the platform provides a more accurate (and fast!)
+ * version.
+ */
+
+void get_fast_time(struct timeval * t)
+{
+ do_get_fast_time(t);
+}
+
#ifndef __alpha__
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov