Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

watchdog: fix opencoded cpumask_next_wrap() in watchdog_next_cpu()

The dedicated helper is more verbose and efficient comparing to
cpumask_next() followed by cpumask_first().

Signed-off-by: "Yury Norov [NVIDIA]" <yury.norov@gmail.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>

+1 -4
+1 -4
kernel/watchdog_buddy.c
··· 12 12 { 13 13 unsigned int next_cpu; 14 14 15 - next_cpu = cpumask_next(cpu, &watchdog_cpus); 16 - if (next_cpu >= nr_cpu_ids) 17 - next_cpu = cpumask_first(&watchdog_cpus); 18 - 15 + next_cpu = cpumask_next_wrap(cpu, &watchdog_cpus); 19 16 if (next_cpu == cpu) 20 17 return nr_cpu_ids; 21 18