time: hrtimer: Introduce hrtimer_next_event_without()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Apr 2018 21:17:00 +0000 (23:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 7 Apr 2018 16:49:54 +0000 (18:49 +0200)
commita59855cd8c613ba4bb95147f6176360d95f75e60
treeb37aceab76a9bec83e04910ee33c3fbc3f6e88ac
parent23a8d888107ce4ce444eab2dcebf4cfb3578770b
time: hrtimer: Introduce hrtimer_next_event_without()

The next set of changes will need to compute the time to the next
hrtimer event over all hrtimers except for the scheduler tick one.

To that end introduce a new helper function,
hrtimer_next_event_without(), for computing the time until the next
hrtimer event over all timers except for one and modify the underlying
code in __hrtimer_next_event_base() to prepare it for being called by
that new function.

No intentional changes in functionality.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
include/linux/hrtimer.h
kernel/time/hrtimer.c