Re: [PATCH] cpumask: kill loop in cpumask_next_and()

2015-01-31 Thread Sergey Senozhatsky
On (01/16/15 00:22), Sergey Senozhatsky wrote: > > cpumask_next_and() does cpumask_next() src1 in a loop and tests if found > cpu is alsop present in src2. remove that loop and perform cpumask_and() > of src1 and src2 first and use to find cpumask_next() intead. > Hello, did you have any

Re: [PATCH] cpumask: kill loop in cpumask_next_and()

2015-01-31 Thread Sergey Senozhatsky
On (01/16/15 00:22), Sergey Senozhatsky wrote: cpumask_next_and() does cpumask_next() src1 in a loop and tests if found cpu is alsop present in src2. remove that loop and perform cpumask_and() of src1 and src2 first and use to find cpumask_next() intead. Hello, did you have any chance to

[PATCH] cpumask: kill loop in cpumask_next_and()

2015-01-15 Thread Sergey Senozhatsky
cpumask_next_and() does cpumask_next() src1 in a loop and tests if found cpu is alsop present in src2. remove that loop and perform cpumask_and() of src1 and src2 first and use to find cpumask_next() intead. Signed-off-by: Sergey Senozhatsky --- lib/cpumask.c | 9 + 1 file changed, 5

[PATCH] cpumask: kill loop in cpumask_next_and()

2015-01-15 Thread Sergey Senozhatsky
cpumask_next_and() does cpumask_next() src1 in a loop and tests if found cpu is alsop present in src2. remove that loop and perform cpumask_and() of src1 and src2 first and use to find cpumask_next() intead. Signed-off-by: Sergey Senozhatsky sergey.senozhat...@gmail.com --- lib/cpumask.c | 9