|
@@ -560,7 +560,7 @@ static inline void cpumask_copy(struct cpumask *dstp,
|
|
|
static inline int cpumask_parse_user(const char __user *buf, int len,
|
|
|
struct cpumask *dstp)
|
|
|
{
|
|
|
- return bitmap_parse_user(buf, len, cpumask_bits(dstp), nr_cpu_ids);
|
|
|
+ return bitmap_parse_user(buf, len, cpumask_bits(dstp), nr_cpumask_bits);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -575,7 +575,7 @@ static inline int cpumask_parselist_user(const char __user *buf, int len,
|
|
|
struct cpumask *dstp)
|
|
|
{
|
|
|
return bitmap_parselist_user(buf, len, cpumask_bits(dstp),
|
|
|
- nr_cpu_ids);
|
|
|
+ nr_cpumask_bits);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -590,7 +590,7 @@ static inline int cpumask_parse(const char *buf, struct cpumask *dstp)
|
|
|
char *nl = strchr(buf, '\n');
|
|
|
unsigned int len = nl ? (unsigned int)(nl - buf) : strlen(buf);
|
|
|
|
|
|
- return bitmap_parse(buf, len, cpumask_bits(dstp), nr_cpu_ids);
|
|
|
+ return bitmap_parse(buf, len, cpumask_bits(dstp), nr_cpumask_bits);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -602,7 +602,7 @@ static inline int cpumask_parse(const char *buf, struct cpumask *dstp)
|
|
|
*/
|
|
|
static inline int cpulist_parse(const char *buf, struct cpumask *dstp)
|
|
|
{
|
|
|
- return bitmap_parselist(buf, cpumask_bits(dstp), nr_cpu_ids);
|
|
|
+ return bitmap_parselist(buf, cpumask_bits(dstp), nr_cpumask_bits);
|
|
|
}
|
|
|
|
|
|
/**
|