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

Commit df06519a authored by Kyle Yan's avatar Kyle Yan
Browse files

timer: Fix incorrect parenthesis in timer



timer code was missing parenthesis in one of the checks to differentiate
between global deferrable timer and percpu deferrable timer.

Change-Id: I6894da3c3ca8ba01fe267d35aa22f2ec4303cd88
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent da755693
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -873,10 +873,11 @@ static inline struct timer_base *get_timer_this_cpu_base(u32 tflags)
	 * the deferrable base.
	 */
	if (IS_ENABLED(CONFIG_NO_HZ_COMMON) && base->nohz_active &&
	    (tflags & TIMER_DEFERRABLE))
	    (tflags & TIMER_DEFERRABLE)) {
		base = &timer_base_deferrable;
		if (tflags & TIMER_PINNED)
			base = this_cpu_ptr(&timer_bases[BASE_DEF]);
	}
	return base;
}