]> git.baikalelectronics.ru Git - kernel.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, 24 Oct 2013 15:16:55 +0000 (17:16 +0200)
commit5c5779ab8c03f2474ad6ab4b25f4bd6bbc1bf844
treec1ded2c6d6a2709718e25b22f36fe1442e5495a5
parent299c9939d9ea3d5451d14f71a8cbe3daa350ea9d
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