Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e317688 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

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: default avatarThomas Gleixner <tglx@linutronix.de>
Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
Acked-by: default avatarPeter 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: default avatarThomas Gleixner <tglx@linutronix.de>
parent 398ca17f
Loading
Loading
Loading
Loading
+1 −4
Original line number Original line Diff line number Diff line
@@ -1883,13 +1883,10 @@ EXPORT_SYMBOL(tcf_destroy_chain);
#ifdef CONFIG_PROC_FS
#ifdef CONFIG_PROC_FS
static int psched_show(struct seq_file *seq, void *v)
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",
	seq_printf(seq, "%08x %08x %08x %08x\n",
		   (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1),
		   (u32)NSEC_PER_USEC, (u32)PSCHED_TICKS2NS(1),
		   1000000,
		   1000000,
		   (u32)NSEC_PER_SEC/(u32)ktime_to_ns(timespec_to_ktime(ts)));
		   (u32)NSEC_PER_SEC / hrtimer_resolution);


	return 0;
	return 0;
}
}