revert "cpumask: don't perform while loop in cpumask_next_and()"
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 18 Jun 2015 18:01:11 +0000 (11:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 19 Jun 2015 03:00:23 +0000 (17:00 -1000)
commit5ca62d65030d8295f54c490d2072563545dbd9d9
tree1066a7809df4d33cf64220a9358993d9050b4690
parent17fda38f15953c398a2a0ae427928873c5c8c47c
revert "cpumask: don't perform while loop in cpumask_next_and()"

Revert commit 534b483a86e6 ("cpumask: don't perform while loop in
cpumask_next_and()").

This was a minor optimization, but it puts a `struct cpumask' on the
stack, which consumes too much stack space.

Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Reported-by: Peter Zijlstra <peterz@infradead.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Amir Vadai <amirv@mellanox.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/cpumask.c