Make bitmask 'and' operators return a result code
commita2e92be0bd1e4b4c34b52e413dee30efa204d1d6
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 21 Aug 2009 16:26:15 +0000 (21 09:26 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:14 +0000 (8 20:33 -0700)
tree49938f94c6a13bd5b279741546a1c32f4a228aaa
parent5638301d05015b68a5577bdf9c61813b3839fa1c
Make bitmask 'and' operators return a result code

commit f4b0373b26567cafd421d91101852ed7a34e9e94 upstream.

When 'and'ing two bitmasks (where 'andnot' is a variation on it), some
cases want to know whether the result is the empty set or not.  In
particular, the TLB IPI sending code wants to do cpumask operations and
determine if there are any CPU's left in the final set.

So this just makes the bitmask (and cpumask) functions return a boolean
for whether the result has any bits set.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/bitmap.h
include/linux/cpumask.h
lib/bitmap.c