]> git.karo-electronics.de Git - karo-tx-linux.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, 17 Oct 2013 07:26:04 +0000 (09:26 +0200)
commit14ff67c6bafa18d286a296d6fa0acd5fae577258
tree849e390b7d051cee7642735b9417a50e2ed4d278
parent5dc24d9564487c54c6dcd8fbfcbf940018088fbd
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