From: David Woodhouse Date: Tue, 7 Jul 2009 18:43:20 +0000 (+0100) Subject: intel-iommu: Speed up map routines by using cached domain ASAP X-Git-Tag: v2.6.32-rc1~162^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147202aa772329a02c6e80bc2b7a6b8dd3deac0b;p=pandora-kernel.git intel-iommu: Speed up map routines by using cached domain ASAP We did before, in the end -- but it was at the bottom of a long stack of functions. Add an inline wrapper get_valid_domain_for_dev() which will use the cached one _first_ and only make the out-of-line call if it's not already set. This takes the average time taken for a 1-page intel_map_sg() from 5961 cycles to 4812 cycles on my Lenovo x200s test box -- a modest 20%. Signed-off-by: David Woodhouse --- Reading git-diff-tree failed