|
@@ -159,6 +159,13 @@ static inline unsigned int cpumask_next_and(int n,
|
|
return n+1;
|
|
return n+1;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static inline unsigned int cpumask_next_wrap(int n, const struct cpumask *mask,
|
|
|
|
+ int start, bool wrap)
|
|
|
|
+{
|
|
|
|
+ /* cpu0 unless stop condition, wrap and at cpu0, then nr_cpumask_bits */
|
|
|
|
+ return (wrap && n == 0);
|
|
|
|
+}
|
|
|
|
+
|
|
/* cpu must be a valid cpu, ie 0, so there's no other choice. */
|
|
/* cpu must be a valid cpu, ie 0, so there's no other choice. */
|
|
static inline unsigned int cpumask_any_but(const struct cpumask *mask,
|
|
static inline unsigned int cpumask_any_but(const struct cpumask *mask,
|
|
unsigned int cpu)
|
|
unsigned int cpu)
|