|
@@ -215,16 +215,13 @@ static inline void __cpus_shift_left(cpumask_t *dstp,
|
|
#ifdef CONFIG_SMP
|
|
#ifdef CONFIG_SMP
|
|
int __first_cpu(const cpumask_t *srcp);
|
|
int __first_cpu(const cpumask_t *srcp);
|
|
#define first_cpu(src) __first_cpu(&(src))
|
|
#define first_cpu(src) __first_cpu(&(src))
|
|
|
|
+int __next_cpu(int n, const cpumask_t *srcp);
|
|
|
|
+#define next_cpu(n, src) __next_cpu((n), &(src))
|
|
#else
|
|
#else
|
|
-#define first_cpu(src) 0
|
|
|
|
|
|
+#define first_cpu(src) 0
|
|
|
|
+#define next_cpu(n, src) 1
|
|
#endif
|
|
#endif
|
|
|
|
|
|
-#define next_cpu(n, src) __next_cpu((n), &(src), NR_CPUS)
|
|
|
|
-static inline int __next_cpu(int n, const cpumask_t *srcp, int nbits)
|
|
|
|
-{
|
|
|
|
- return min_t(int, nbits, find_next_bit(srcp->bits, nbits, n+1));
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
#define cpumask_of_cpu(cpu) \
|
|
#define cpumask_of_cpu(cpu) \
|
|
({ \
|
|
({ \
|
|
typeof(_unused_cpumask_arg_) m; \
|
|
typeof(_unused_cpumask_arg_) m; \
|