Merge tag 'for-linus-4.8' of git://git.code.sf.net/p/openipmi/linux-ipmi
[linux-2.6-microblaze.git] / kernel / time / timer_stats.c
index 1adecb4..087204c 100644 (file)
@@ -279,7 +279,7 @@ static void print_name_offset(struct seq_file *m, unsigned long addr)
 
 static int tstats_show(struct seq_file *m, void *v)
 {
-       struct timespec period;
+       struct timespec64 period;
        struct entry *entry;
        unsigned long ms;
        long events = 0;
@@ -295,11 +295,11 @@ static int tstats_show(struct seq_file *m, void *v)
 
        time = ktime_sub(time_stop, time_start);
 
-       period = ktime_to_timespec(time);
+       period = ktime_to_timespec64(time);
        ms = period.tv_nsec / 1000000;
 
        seq_puts(m, "Timer Stats Version: v0.3\n");
-       seq_printf(m, "Sample period: %ld.%03ld s\n", period.tv_sec, ms);
+       seq_printf(m, "Sample period: %ld.%03ld s\n", (long)period.tv_sec, ms);
        if (atomic_read(&overflow_count))
                seq_printf(m, "Overflow: %d entries\n", atomic_read(&overflow_count));
        seq_printf(m, "Collection: %s\n", timer_stats_active ? "active" : "inactive");