aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/time/tick-broadcast.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/time/tick-broadcast.c b/kernel/time/tick-broadcast.c
index b398c2ea69b2..aa2094d5dd27 100644
--- a/kernel/time/tick-broadcast.c
+++ b/kernel/time/tick-broadcast.c
@@ -612,6 +612,14 @@ static void tick_handle_oneshot_broadcast(struct clock_event_device *dev)
612 now = ktime_get(); 612 now = ktime_get();
613 /* Find all expired events */ 613 /* Find all expired events */
614 for_each_cpu(cpu, tick_broadcast_oneshot_mask) { 614 for_each_cpu(cpu, tick_broadcast_oneshot_mask) {
615 /*
616 * Required for !SMP because for_each_cpu() reports
617 * unconditionally CPU0 as set on UP kernels.
618 */
619 if (!IS_ENABLED(CONFIG_SMP) &&
620 cpumask_empty(tick_broadcast_oneshot_mask))
621 break;
622
615 td = &per_cpu(tick_cpu_device, cpu); 623 td = &per_cpu(tick_cpu_device, cpu);
616 if (td->evtdev->next_event <= now) { 624 if (td->evtdev->next_event <= now) {
617 cpumask_set_cpu(cpu, tmpmask); 625 cpumask_set_cpu(cpu, tmpmask);