1*ccb46000SAndrew Morton #include <linux/kernel.h> 2*ccb46000SAndrew Morton #include <linux/bitops.h> 3*ccb46000SAndrew Morton #include <linux/cpumask.h> 4*ccb46000SAndrew Morton #include <linux/module.h> 5*ccb46000SAndrew Morton 6*ccb46000SAndrew Morton int __first_cpu(const cpumask_t *srcp) 7*ccb46000SAndrew Morton { 8*ccb46000SAndrew Morton return min_t(int, NR_CPUS, find_first_bit(srcp->bits, NR_CPUS)); 9*ccb46000SAndrew Morton } 10*ccb46000SAndrew Morton EXPORT_SYMBOL(__first_cpu); 11*ccb46000SAndrew Morton 12