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

Commit 662b3e19 authored by Frederic Weisbecker's avatar Frederic Weisbecker Committed by Thomas Gleixner
Browse files

hrtimer: Simplify get_target_base() by returning current base



Instead of fetching again the current cpu base, just take it from the
parameter.

Signed-off-by: default avatarFrederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/1439907509-9553-2-git-send-email-fweisbec@gmail.com


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 75e3b37d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ struct hrtimer_cpu_base *get_target_base(struct hrtimer_cpu_base *base,
					 int pinned)
{
	if (pinned || !base->migration_enabled)
		return this_cpu_ptr(&hrtimer_bases);
		return base;
	return &per_cpu(hrtimer_bases, get_nohz_timer_target());
}
#else
@@ -191,7 +191,7 @@ static inline
struct hrtimer_cpu_base *get_target_base(struct hrtimer_cpu_base *base,
					 int pinned)
{
	return this_cpu_ptr(&hrtimer_bases);
	return base;
}
#endif