diff options
author | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-07 14:43:20 -0400 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-07-07 14:43:24 -0400 |
commit | 147202aa772329a02c6e80bc2b7a6b8dd3deac0b (patch) | |
tree | a0d148e7865e6505f69652d739a8e23458da90d0 /include | |
parent | 085ff82c9c615d502d1e6754879d8d4ff590d143 (diff) |
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 <David.Woodhouse@intel.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions