]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/css: Prevent unnecessary allocation in subchannel loop
authorPeter Oberparleiter <oberpar@linux.vnet.ibm.com>
Tue, 26 Nov 2013 13:59:21 +0000 (14:59 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 2 Dec 2013 17:15:49 +0000 (18:15 +0100)
commitfa8589eaab7d17ce3e48de7479a42aac92e2999e
tree35860aa923039289c6bbc1ac82c14c03455c201c
parent643796dea8feb15b3be3d252f540c0b2b68bba43
s390/css: Prevent unnecessary allocation in subchannel loop

Subchannel looping function for_each_subchannel_staged() allocates a
subchannel-ID-bitmap to efficiently iterate over the list of known
and unknown subchannels. Since this function is also used to iterate
over known-subchannels only, optimize that case by not requiring the
ID-bitmap allocation and falling back to simple bus_for_each_dev()
looping.

Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Reviewed-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/css.c