We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67b8d5c commit 5596fe3Copy full SHA for 5596fe3
kernel/time/tick-broadcast.c
@@ -612,6 +612,14 @@ static void tick_handle_oneshot_broadcast(struct clock_event_device *dev)
612
now = ktime_get();
613
/* Find all expired events */
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
+
623
td = &per_cpu(tick_cpu_device, cpu);
624
if (td->evtdev->next_event <= now) {
625
cpumask_set_cpu(cpu, tmpmask);
0 commit comments