fix cpulist_parse definition to match bitmap_parselist and kernel
Nobody used cpulist_parse before, so nobody noticed that the parameters for cpulist_parse and bitmap_parselist did not match the parameters actually used by bitmap_parselist and related functions. Signed-off-by: Rik van Riel <riel@redhat.com>
This commit is contained in:
parent
976e741c59
commit
a1646032c6
|
@ -281,10 +281,10 @@ static inline int __cpulist_scnprintf(char *buf, int len,
|
||||||
return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
|
return bitmap_scnlistprintf(buf, len, srcp->bits, nbits);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define cpulist_parse(buf, dst) __cpulist_parse((buf), &(dst), NR_CPUS)
|
#define cpulist_parse(buf, len, dst) __cpulist_parse((buf), (len), &(dst), NR_CPUS)
|
||||||
static inline int __cpulist_parse(const char *buf, cpumask_t *dstp, int nbits)
|
static inline int __cpulist_parse(const char *buf, int len, cpumask_t *dstp, int nbits)
|
||||||
{
|
{
|
||||||
return bitmap_parselist(buf, dstp->bits, nbits);
|
return bitmap_parselist(buf, len, dstp->bits, nbits);
|
||||||
}
|
}
|
||||||
|
|
||||||
#define cpu_remap(oldbit, old, new) \
|
#define cpu_remap(oldbit, old, new) \
|
||||||
|
|
Loading…
Reference in a new issue