aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/cpumask.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/cpumask.h')
-rw-r--r--include/linux/cpumask.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
index b49472d1af84..80226e776143 100644
--- a/include/linux/cpumask.h
+++ b/include/linux/cpumask.h
@@ -370,10 +370,10 @@ int __any_online_cpu(const cpumask_t *mask);
370#define first_cpu(src) __first_cpu(&(src)) 370#define first_cpu(src) __first_cpu(&(src))
371#define next_cpu(n, src) __next_cpu((n), &(src)) 371#define next_cpu(n, src) __next_cpu((n), &(src))
372#define any_online_cpu(mask) __any_online_cpu(&(mask)) 372#define any_online_cpu(mask) __any_online_cpu(&(mask))
373#define for_each_cpu_mask(cpu, mask) \ 373#define for_each_cpu_mask(cpu, mask) \
374 for ((cpu) = first_cpu(mask); \ 374 for ((cpu) = -1; \
375 (cpu) < NR_CPUS; \ 375 (cpu) = next_cpu((cpu), (mask)), \
376 (cpu) = next_cpu((cpu), (mask))) 376 (cpu) < NR_CPUS; )
377#endif 377#endif
378 378
379#if NR_CPUS <= 64 379#if NR_CPUS <= 64
@@ -387,10 +387,10 @@ int __any_online_cpu(const cpumask_t *mask);
387int __next_cpu_nr(int n, const cpumask_t *srcp); 387int __next_cpu_nr(int n, const cpumask_t *srcp);
388#define next_cpu_nr(n, src) __next_cpu_nr((n), &(src)) 388#define next_cpu_nr(n, src) __next_cpu_nr((n), &(src))
389#define cpus_weight_nr(cpumask) __cpus_weight(&(cpumask), nr_cpu_ids) 389#define cpus_weight_nr(cpumask) __cpus_weight(&(cpumask), nr_cpu_ids)
390#define for_each_cpu_mask_nr(cpu, mask) \ 390#define for_each_cpu_mask_nr(cpu, mask) \
391 for ((cpu) = first_cpu(mask); \ 391 for ((cpu) = -1; \
392 (cpu) < nr_cpu_ids; \ 392 (cpu) = next_cpu_nr((cpu), (mask)), \
393 (cpu) = next_cpu_nr((cpu), (mask))) 393 (cpu) < nr_cpu_ids; )
394 394
395#endif /* NR_CPUS > 64 */ 395#endif /* NR_CPUS > 64 */
396 396