]> git.baikalelectronics.ru Git - kernel.git/commit
intel-iommu: Clean up handling of "caching mode" vs. context flushing.
authorDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 May 2009 16:16:06 +0000 (17:16 +0100)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Sun, 10 May 2009 18:49:52 +0000 (19:49 +0100)
commit5a466d5d81b0dfee4a7aee45529b1a33b858da63
tree2784fbbf4d6782db300b92870d2bf6111ef26627
parenta379833631d22d48629cba0b50e49fc03951ab04
intel-iommu: Clean up handling of "caching mode" vs. context flushing.

It really doesn't make a lot of sense to have some of the logic to
handle caching vs. non-caching mode duplicated in qi_flush_context() and
__iommu_flush_context(), while the return value indicates whether the
caller should take other action which depends on the same thing.

Especially since qi_flush_context() thought it was returning something
entirely different anyway.

This patch makes qi_flush_context() and __iommu_flush_context() both
return void, removes the 'non_present_entry_flush' argument and makes
the only call site which _set_ that argument to 1 do the right thing.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/dmar.c
drivers/pci/intel-iommu.c
include/linux/intel-iommu.h