]> git.baikalelectronics.ru Git - kernel.git/commit
s390/bitops: rename find_first_bit_left() to find_first_bit_inv()
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 23 Sep 2013 10:01:44 +0000 (12:01 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 24 Oct 2013 15:16:56 +0000 (17:16 +0200)
commit32dc7a41d7604a53f543eba91a60aa419af92045
tree3f6df4a49ba2fdaaa01e824d77811777d745cc6d
parent5c5779ab8c03f2474ad6ab4b25f4bd6bbc1bf844
s390/bitops: rename find_first_bit_left() to find_first_bit_inv()

find_first_bit_left() and friends have nothing to do with the normal
LSB0 bit numbering for big endian machines used in Linux (least
significant bit has bit number 0).
Instead they use MSB0 bit numbering, where the most signficant bit has
bit number 0. So rename find_first_bit_left() and friends to
find_first_bit_inv(), to avoid any confusion.
Also provide inv versions of set_bit, clear_bit and test_bit.

This also removes the confusing use of e.g. set_bit() in airq.c which
uses a "be_to_le" bit number conversion, which could imply that instead
set_bit_le() could be used. But that is entirely wrong since the _le
bitops variant uses yet another bit numbering scheme.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/bitops.h
arch/s390/lib/find.c
drivers/s390/cio/airq.c