|
@@ -810,11 +810,10 @@ static inline const struct cpumask *get_cpu_mask(unsigned int cpu)
|
|
|
#else /* NR_CPUS > 1 */
|
|
|
int __first_cpu(const cpumask_t *srcp);
|
|
|
int __next_cpu(int n, const cpumask_t *srcp);
|
|
|
-int __any_online_cpu(const cpumask_t *mask);
|
|
|
|
|
|
#define first_cpu(src) __first_cpu(&(src))
|
|
|
#define next_cpu(n, src) __next_cpu((n), &(src))
|
|
|
-#define any_online_cpu(mask) __any_online_cpu(&(mask))
|
|
|
+#define any_online_cpu(mask) cpumask_any_and(&mask, cpu_online_mask)
|
|
|
#define for_each_cpu_mask(cpu, mask) \
|
|
|
for ((cpu) = -1; \
|
|
|
(cpu) = next_cpu((cpu), (mask)), \
|