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: Kyle Yan <kyan@codeaurora.org>
diff --git a/kernel/time/timer.c b/kernel/time/timer.c
index 1ef7856..470d966 100644
--- a/kernel/time/timer.c
+++ b/kernel/time/timer.c
@@ -873,10 +873,11 @@
* 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;
}