summaryrefslogtreecommitdiffstats
path: root/lib/cpumask.c
blob: 1560d97390ddd06b5137c154060db3adf9125ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <linux/kernel.h>
#include <linux/bitops.h>
#include <linux/cpumask.h>
#include <linux/module.h>

int __first_cpu(const cpumask_t *srcp)
{
	return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS));
}
EXPORT_SYMBOL(__first_cpu);