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 4fa7d61 commit bfa788dCopy full SHA for bfa788d
kernel/time/clocksource.c
@@ -587,9 +587,7 @@ static void clocksource_watchdog(struct timer_list *unused)
587
* Cycle through CPUs to check if the CPUs stay synchronized
588
* to each other.
589
*/
590
- next_cpu = cpumask_next(raw_smp_processor_id(), cpu_online_mask);
591
- if (next_cpu >= nr_cpu_ids)
592
- next_cpu = cpumask_first(cpu_online_mask);
+ next_cpu = cpumask_next_wrap(raw_smp_processor_id(), cpu_online_mask);
593
594
/*
595
* Arm timer if not already pending: could race with concurrent
0 commit comments