From 007780dc091606d25dd97f85e6d910f5a4f8b54b Mon Sep 17 00:00:00 2001 From: Stephen Rothwell Date: Fri, 4 Jul 2008 10:00:05 -0700 Subject: [PATCH] --- yaml --- r: 98717 b: refs/heads/master c: acb7669c125676e63cf96582455509216c39745e h: refs/heads/master i: 98715: 437379d5f253ecae0d5930e9be73af51ed22c8a1 v: v3 --- [refs] | 2 +- trunk/include/linux/cpumask.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 905190350114..06e56b795732 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 603ded16a308d0a7a17738c973e3c8cbcd5db7dd +refs/heads/master: acb7669c125676e63cf96582455509216c39745e diff --git a/trunk/include/linux/cpumask.h b/trunk/include/linux/cpumask.h index 5df3db58fcc6..c24875bd9c5b 100644 --- a/trunk/include/linux/cpumask.h +++ b/trunk/include/linux/cpumask.h @@ -353,6 +353,10 @@ static inline void __cpus_fold(cpumask_t *dstp, const cpumask_t *origp, for ((cpu) = 0; (cpu) < 1; (cpu)++, (void)mask) #endif /* NR_CPUS */ +#define next_cpu_nr(n, src) next_cpu(n, src) +#define cpus_weight_nr(cpumask) cpus_weight(cpumask) +#define for_each_cpu_mask_nr(cpu, mask) for_each_cpu_mask(cpu, mask) + /* * The following particular system cpumasks and operations manage * possible, present and online cpus. Each of them is a fixed size