From: Peter Oberparleiter Date: Tue, 26 Nov 2013 13:59:21 +0000 (+0100) Subject: s390/css: Prevent unnecessary allocation in subchannel loop X-Git-Tag: v3.14-rc1~184^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47d30674d6c79197fa7bfb0d09d5857f61e0277b;p=pandora-kernel.git 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 Reviewed-by: Sebastian Ott Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed