]> git.baikalelectronics.ru Git - kernel.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, 16 Dec 2013 13:37:42 +0000 (14:37 +0100)
commitcda93b47501447a33beba8f38a54d3d1cc2eaada
tree97e100ae386becbf98bdf892ca1cc137ea90f634
parent0073471db387709508ff60d2059f6ef98c8d5e2e
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