From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756017AbbDNVQT (ORCPT ); Tue, 14 Apr 2015 17:16:19 -0400 Received: from www.linutronix.de ([62.245.132.108]:37928 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755196AbbDNVIT (ORCPT ); Tue, 14 Apr 2015 17:08:19 -0400 Message-Id: <20150414203500.720623028@linutronix.de> User-Agent: quilt/0.63-1 Date: Tue, 14 Apr 2015 21:08:28 -0000 From: Thomas Gleixner To: LKML Cc: Peter Zijlstra , Ingo Molnar , Preeti U Murthy , Viresh Kumar , Marcelo Tosatti , Frederic Weisbecker , Jamal Hadi Salim , "David S. Miller" , netdev@vger.kernel.org Subject: [patch 03/39] net: sched: Use hrtimer_resolution instead of hrtimer_get_res() References: <20150414203303.702062272@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=net-sched-use-hrtimer-resolution.patch X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001,URIBL_BLOCKED=0.001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org No point in converting a timespec now that the value is directly accessible. Signed-off-by: Thomas Gleixner Cc: Jamal Hadi Salim Cc: "David S. Miller" Cc: netdev@vger.kernel.org --- @David: Depends on a previous patch in this series net/sched/sch_api.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) Index: tip/net/sched/sch_api.c =================================================================== --- tip.orig/net/sched/sch_api.c +++ tip/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; }