s390/qdio: replace shift loop by ilog2
authorFabian Frederick <fabf@skynet.be>
Tue, 3 Jun 2014 19:55:15 +0000 (21:55 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 10 Jun 2014 08:48:28 +0000 (10:48 +0200)
commit92bdae5d9c95c9dece7886cbdf1f50548b44e60a
treedbd84088c6800a04b48df9ab00fd21175aa7b5da
parentdbe33fc9ad0cd965afe71cd6fca9539afd704e38
s390/qdio: replace shift loop by ilog2

account_sbals is called by get_inbound_buffer_frontier and
get_outbound_buffer_frontier with 'count' value > 0 so we can safely
convert shift loop to ilog2.

Cc: Joe Perches <joe@perches.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/qdio_main.c