Message ID | 20190919092353.29993-2-khalid.elmously@canonical.com |
---|---|
State | New |
Headers | show |
Series | Enable napi_tx | expand |
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 09b8d8aaa35f..e8ab8e941b91 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -154,6 +154,13 @@ static inline unsigned int cpumask_next_and(int n, 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. */ static inline unsigned int cpumask_any_but(const struct cpumask *mask, unsigned int cpu)