From: Thomas Gleixner Date: Tue, 14 Apr 2015 21:08:28 +0000 (+0000) Subject: net: sched: Use hrtimer_resolution instead of hrtimer_get_res() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1e3176885cce8e0137d6f4072c5910bfa00901ed;p=linux-beck.git net: sched: Use hrtimer_resolution instead of hrtimer_get_res() No point in converting a timespec now that the value is directly accessible. Signed-off-by: Thomas Gleixner Acked-by: David S. Miller Acked-by: Peter Zijlstra Cc: Preeti U Murthy Cc: Viresh Kumar Cc: Marcelo Tosatti Cc: Frederic Weisbecker Cc: Jamal Hadi Salim Link: http://lkml.kernel.org/r/20150414203500.720623028@linutronix.de Signed-off-by: Thomas Gleixner --- diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index ad9eed70bc8f..45bc63ae18e3 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -1883,13 +1883,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; }