https://github.com/torvalds/linux
Revision f4b0373b26567cafd421d91101852ed7a34e9e94 authored by Linus Torvalds on 21 August 2009, 16:26:15 UTC, committed by Linus Torvalds on 21 August 2009, 16:26:15 UTC
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.

Cc: stable@kernel.org (2.6.30, needed by TLB shootdown fix)
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 83d349f
History
Tip revision: f4b0373b26567cafd421d91101852ed7a34e9e94 authored by Linus Torvalds on 21 August 2009, 16:26:15 UTC
Make bitmask 'and' operators return a result code
Tip revision: f4b0373
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 952 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 148.6 KB
Makefile -rw-r--r-- 53.9 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top