Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / obdclass / lu_time.c
index 1eed2e2..77c053d 100644 (file)
@@ -48,6 +48,7 @@ struct lu_time_data {
         unsigned long long ltd_timestamp[LU_TIME_DEPTH_MAX];
 };
 
+/* context key constructor/destructor: lu_time_key_init, lu_time_key_fini */
 LU_KEY_INIT_FINI(lu_time, struct lu_time_data);
 
 void lu_time_key_exit(const struct lu_context *ctx,
@@ -92,7 +93,7 @@ int lu_time_named_init(struct lprocfs_stats **stats, const char *name,
         if (nr == 0)
                 RETURN(0);
 
-        *stats = lprocfs_alloc_stats(nr);
+        *stats = lprocfs_alloc_stats(nr, 0);
         if (*stats != NULL) {
                 result = lprocfs_register_stats(entry, name, *stats);
                 if (result == 0) {
@@ -151,7 +152,6 @@ unsigned long long lu_time_stamp_get(void)
         * do_gettimeofday() goes backwards sometimes :(.  Usethe TSC
         */
        unsigned long long ret;
-       extern unsigned long cpu_khz;
 
        rdtscll(ret);
        do_div(ret, cpu_khz / 1000);