/* Often used to find any cpu but smp_processor_id() in a mask. Returns >= nr_cpu_ids if no cpus set.  */
int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)
/* Often used to find any cpu but smp_processor_id() in a mask. Returns >= nr_cpu_ids if no cpus set.  */
int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)
{
	unsigned int i;
	cpumask_check(cpu);
	for_each_cpu(i, mask)
		if (i != cpu)
			break;
	return i;
}