]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
hrtimer: Get rid of the resolution field in hrtimer_clock_base
authorThomas Gleixner <tglx@linutronix.de>
Tue, 14 Apr 2015 21:08:27 +0000 (21:08 +0000)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 11 Feb 2020 20:03:54 +0000 (20:03 +0000)
commit2c2d6d5f193b96780a287695634a283331426e02
treea492e03cd38d1b90573f8878a95ac4b0d3fec469
parent68c9d0bf94f81680d91321a510369ca0f7c7f9f8
hrtimer: Get rid of the resolution field in hrtimer_clock_base

commit 398ca17fb54b212cdc9da7ff4a17a35c48dd2103 upstream.

The field has no value because all clock bases have the same
resolution. The resolution only changes when we switch to high
resolution timer mode. We can evaluate that from a single static
variable as well. In the !HIGHRES case its simply a constant.

Export the variable, so we can simplify the usage sites.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/20150414203500.645454122@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
[bwh: Backported to 3.16 as dependency of commit 552263456215
 "powerpc: Fix vDSO clock_getres()":
 - Adjust filename, context]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/hrtimer.h
kernel/hrtimer.c
kernel/time/timer_list.c