|
@@ -40,9 +40,9 @@ extern int nr_cpu_ids;
|
|
#ifdef CONFIG_CPUMASK_OFFSTACK
|
|
#ifdef CONFIG_CPUMASK_OFFSTACK
|
|
/* Assuming NR_CPUS is huge, a runtime limit is more efficient. Also,
|
|
/* Assuming NR_CPUS is huge, a runtime limit is more efficient. Also,
|
|
* not all bits may be allocated. */
|
|
* not all bits may be allocated. */
|
|
-#define nr_cpumask_bits nr_cpu_ids
|
|
|
|
|
|
+#define nr_cpumask_bits ((unsigned int)nr_cpu_ids)
|
|
#else
|
|
#else
|
|
-#define nr_cpumask_bits NR_CPUS
|
|
|
|
|
|
+#define nr_cpumask_bits ((unsigned int)NR_CPUS)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
/*
|
|
/*
|