X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=net%2Fsched%2Fsch_api.c;h=f06aa01d60fd344bc853c9363dcff1dcec27fab3;hb=21dc2e6c6d552702736ad3603fe9b074654d3932;hp=c5b9db84d069d4c0fca40f3bf21cfa6dd63adb56;hpb=3a07bd6fead4f00f67b1bf5f551e686661c4f52c;p=firefly-linux-kernel-4.4.55.git diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index c5b9db84d069..f06aa01d60fd 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1879,13 +1879,10 @@ EXPORT_SYMBOL(tcf_destroy_chain); #ifdef CONFIG_PROC_FS static int psched_show(struct seq_file *seq, void *v) { - struct timespec ts; - - hrtimer_get_res(CLOCK_MONOTONIC, &ts); seq_printf(seq, "%08x %08x %08x %08x\n", (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1), 1000000, - (u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts))); + (u32)NSEC_PER_SEC / hrtimer_resolution); return 0; }