On Wed, 24 Jun 2015, Thomas Gleixner wrote:
On Tue, 23 Jun 2015, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that
On Tue, 23 Jun 2015, Vikas Shivappa wrote:
> There is currently no cpumask helper function to pick a "random" cpu
> from a mask which is also online.
>
> cpumask_any_online_but() does that which is similar to cpumask_any_but()
> but also returns a cpu that is online.
>
> Signed-off-by: Vikas
On Tue, 23 Jun 2015, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa
On Wed, 24 Jun 2015, Thomas Gleixner wrote:
On Tue, 23 Jun 2015, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa
---
include/linux/cpumask.h | 18
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa vikas.shiva...@linux.intel.com
---
On Tue, 16 Jun 2015, Thomas Gleixner wrote:
On Mon, 15 Jun 2015, Vikas Shivappa wrote:
On Mon, 15 Jun 2015, Peter Zijlstra wrote:
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
+ cpumask_and(, cpu_online_mask, mask);
+ cpumask_clear_cpu(cpu, );
+ return
On Mon, 15 Jun 2015, Vikas Shivappa wrote:
> On Mon, 15 Jun 2015, Peter Zijlstra wrote:
> > On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
> > > + cpumask_and(, cpu_online_mask, mask);
> > > + cpumask_clear_cpu(cpu, );
> > > + return cpumask_any();
> > > +}
> >
> > You had a good
On Tue, 16 Jun 2015, Thomas Gleixner wrote:
On Mon, 15 Jun 2015, Vikas Shivappa wrote:
On Mon, 15 Jun 2015, Peter Zijlstra wrote:
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
+ cpumask_and(tmp, cpu_online_mask, mask);
+ cpumask_clear_cpu(cpu, tmp);
+
On Mon, 15 Jun 2015, Vikas Shivappa wrote:
On Mon, 15 Jun 2015, Peter Zijlstra wrote:
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
+ cpumask_and(tmp, cpu_online_mask, mask);
+ cpumask_clear_cpu(cpu, tmp);
+ return cpumask_any(tmp);
+}
You had a good example
On Mon, 15 Jun 2015, Peter Zijlstra wrote:
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
> There is currently no cpumask helper function to pick a "random" cpu
> from a mask which is also online.
>
> cpumask_any_online_but() does that which is similar to cpumask_any_but()
> but also returns a cpu that is online.
>
>
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
On Mon, 15 Jun 2015, Peter Zijlstra wrote:
On Fri, Jun 12, 2015 at 11:17:08AM -0700, Vikas Shivappa wrote:
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa
---
include/linux/cpumask.h | 18
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa vikas.shiva...@linux.intel.com
---
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa
---
include/linux/cpumask.h | 18
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa vikas.shiva...@linux.intel.com
---
There is currently no cpumask helper function to pick a "random" cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa
---
include/linux/cpumask.h | 18
There is currently no cpumask helper function to pick a random cpu
from a mask which is also online.
cpumask_any_online_but() does that which is similar to cpumask_any_but()
but also returns a cpu that is online.
Signed-off-by: Vikas Shivappa vikas.shiva...@linux.intel.com
---
20 matches
Mail list logo