mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2024-12-28 15:24:58 +00:00
12 lines
244 B
C
12 lines
244 B
C
|
#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);
|
||
|
|