]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/time/timer_list.c
hrtimer: show the timer ranges in /proc/timer_list
[linux-2.6-omap-h63xx.git] / kernel / time / timer_list.c
index 5224a3215fb78f2574a8940c689879485519a073..122ee751d2d1e16e6429489f70bc7ef13ba48a94 100644 (file)
@@ -65,8 +65,10 @@ print_timer(struct seq_file *m, struct hrtimer *timer, int idx, u64 now)
        SEQ_printf(m, ", %s/%d", tmp, timer->start_pid);
 #endif
        SEQ_printf(m, "\n");
-       SEQ_printf(m, " # expires at %Lu nsecs [in %Ld nsecs]\n",
+       SEQ_printf(m, " # expires at %Lu-%Lu nsecs [in %Ld to %Ld nsecs]\n",
+               (unsigned long long)ktime_to_ns(hrtimer_get_softexpires(timer)),
                (unsigned long long)ktime_to_ns(hrtimer_get_expires(timer)),
+               (long long)(ktime_to_ns(hrtimer_get_softexpires(timer)) - now),
                (long long)(ktime_to_ns(hrtimer_get_expires(timer)) - now));
 }