[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen: fix for_each_cpu when NR_CPUS=1
On 12.03.2021 15:03, Ian Jackson wrote: > Dario Faggioli writes ("[PATCH] xen: fix for_each_cpu when NR_CPUS=1"): >> -#if NR_CPUS > 1 >> #define for_each_cpu(cpu, mask) \ >> for ((cpu) = cpumask_first(mask); \ > > Just a thought: does cpumask_first work on an empty mask ? I'm sure it does, yes - it'll return a value >= nr_cpu_ids in this case. If it didn't work, NR_CPUS > 1 would also be badly affected. Jan
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |