Whamcloud - gitweb
b=20492 allow llverdev/llverfs to handle media errors better
[fs/lustre-release.git] / lustre / obdclass / lu_time.c
index 27cbf13..342d334 100644 (file)
@@ -16,8 +16,8 @@
  * in the LICENSE file that accompanied this code).
  *
  * You should have received a copy of the GNU General Public License
- * version 2 along with this program; If not, see [sun.com URL with a
- * copy of GPLv2].
+ * version 2 along with this program; If not, see
+ * http://www.sun.com/software/products/lustre/docs/GPLv2.pdf
  *
  * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
  * CA 95054 USA or visit www.sun.com if you need additional information or
@@ -47,6 +47,7 @@
 # define EXPORT_SYMTAB
 #endif
 
+#include <obd_class.h>
 /* OBD_{ALLOC,FREE}_PTR() */
 #include <obd_support.h>
 #include <lprocfs_status.h>
@@ -160,7 +161,7 @@ unsigned long long lu_time_stamp_get(void)
         /*
          * Return timestamp with microsecond precision. This has to be cheap.
          */
-//#ifdef CONFIG_X86 
+//#ifdef CONFIG_X86
 #if defined(CONFIG_X86) && !defined(CONFIG_X86_64)
        /*
         * do_gettimeofday() goes backwards sometimes :(.  Usethe TSC
@@ -174,7 +175,7 @@ unsigned long long lu_time_stamp_get(void)
        struct timeval now;
        unsigned long long ret;
 
-       do_gettimeofday(&now);
+       cfs_gettimeofday(&now);
        ret = now.tv_sec;
        ret *= 1000000;
        ret += now.tv_usec;