Skip to content
Commit 4c25a2c1 authored by David Woodhouse's avatar David Woodhouse
Browse files

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: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent fa3b6dcd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment