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

Commit 7d2f6abb authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

time: hrtimer: Use timerqueue_iterate_next() to get to the next timer



Use timerqueue_iterate_next() to get to the next timer in
__hrtimer_next_event_base() without browsing the timerqueue
details diredctly.

No intentional changes in functionality.

Suggested-by: default avatarFrederic Weisbecker <frederic@kernel.org>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent ff7de620
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -505,9 +505,7 @@ static ktime_t __hrtimer_next_event_base(struct hrtimer_cpu_base *cpu_base,
		timer = container_of(next, struct hrtimer, node);
		if (timer == exclude) {
			/* Get to the next timer in the queue. */
			struct rb_node *rbn = rb_next(&next->node);

			next = rb_entry_safe(rbn, struct timerqueue_node, node);
			next = timerqueue_iterate_next(next);
			if (!next)
				continue;