]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/bitops: use flogr instruction to implement __ffs, ffs, __fls, fls and fls64
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 19 Sep 2013 09:05:32 +0000 (11:05 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 17 Oct 2013 07:26:03 +0000 (09:26 +0200)
commit5dc24d9564487c54c6dcd8fbfcbf940018088fbd
tree018da8534dfc6d9dbaf25180db979073f0c3465b
parent662024754afb908743541f9620be867ee3cece2d
s390/bitops: use flogr instruction to implement __ffs, ffs, __fls, fls and fls64

Since z9 109 we have the flogr instruction which can be used to implement
optimized versions of __ffs, ffs, __fls, fls and fls64.
So implement and use them, instead of the generic variants.
This reduces the size of the kernel image (defconfig, -march=z9-109)
by 19,648 bytes.

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