diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2015-04-14 17:08:28 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2015-04-22 11:06:48 -0400 |
commit | 1e3176885cce8e0137d6f4072c5910bfa00901ed (patch) | |
tree | 8bb05f6133c0fd18bfe413036daef2adedb9d9df | |
parent | 398ca17fb54b212cdc9da7ff4a17a35c48dd2103 (diff) |
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 <tglx@linutronix.de>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Link: http://lkml.kernel.org/r/20150414203500.720623028@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | net/sched/sch_api.c | 5 |
1 files changed, 1 insertions, 4 deletions
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); | |||
1883 | #ifdef CONFIG_PROC_FS | 1883 | #ifdef CONFIG_PROC_FS |
1884 | static int psched_show(struct seq_file *seq, void *v) | 1884 | static int psched_show(struct seq_file *seq, void *v) |
1885 | { | 1885 | { |
1886 | struct timespec ts; | ||
1887 | |||
1888 | hrtimer_get_res(CLOCK_MONOTONIC, &ts); | ||
1889 | seq_printf(seq, "%08x %08x %08x %08x\n", | 1886 | seq_printf(seq, "%08x %08x %08x %08x\n", |
1890 | (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1), | 1887 | (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1), |
1891 | 1000000, | 1888 | 1000000, |
1892 | (u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts))); | 1889 | (u32)NSEC_PER_SEC / hrtimer_resolution); |
1893 | 1890 | ||
1894 | return 0; | 1891 | return 0; |
1895 | } | 1892 | } |