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 ff56a3e commit 4fa7d61Copy full SHA for 4fa7d61
kernel/time/clocksource.c
@@ -323,9 +323,7 @@ static void clocksource_verify_choose_cpus(void)
323
return;
324
325
/* Make sure to select at least one CPU other than the current CPU. */
326
- cpu = cpumask_first(cpu_online_mask);
327
- if (cpu == smp_processor_id())
328
- cpu = cpumask_next(cpu, cpu_online_mask);
+ cpu = cpumask_any_but(cpu_online_mask, smp_processor_id());
329
if (WARN_ON_ONCE(cpu >= nr_cpu_ids))
330
331
cpumask_set_cpu(cpu, &cpus_chosen);
0 commit comments