Sign in
googlers
/
maze
/
linux
/
ccb46000f4bb459777686611157ac0eac928704e
/
.
/
lib
/
cpumask.c
blob: 1560d97390ddd06b5137c154060db3adf9125ea9 [
file
] [
log
] [
blame
]
#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
);