ARM: boolean bit testing
authorJohannes Weiner <hannes@cmpxchg.org>
Tue, 21 Jul 2009 15:08:28 +0000 (17:08 +0200)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 11 Oct 2009 15:25:06 +0000 (16:25 +0100)
commite9ac829185c5d17787d78c13c05a40c39d660239
tree295822fefaf2370c9f4ef155dba1d6f225b93b89
parent03a6e5bd5ba7d2a37b0bf4327b83d7c83311b0a1
ARM: boolean bit testing

Bit testing (test, testset, testclear, testchange) for bit numbers
known at compile time returns a word with the tested-for bit set.

Change it to return a true boolean value so to make it consistent with
the out-of-line path and all the other bitops implementations.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/bitops.h