aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérôme Glisse <jglisse@redhat.com>2017-08-31 17:17:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2017-08-31 19:12:59 -0400
commit30ef7d2c056cb7ef22c16c6fe0756105d584985c (patch)
tree307e447d247cf1e4a53407f039145da53dcf8361
parentf0d1c713d66d7b16527568e79528964cf4b5513d (diff)
iommu/intel: update to new mmu_notifier semantic
Calls to mmu_notifier_invalidate_page() were replaced by calls to mmu_notifier_invalidate_range() and are now bracketed by calls to mmu_notifier_invalidate_range_start()/end() Remove now useless invalidate_page callback. Signed-off-by: Jérôme Glisse <jglisse@redhat.com> Cc: David Woodhouse <dwmw2@infradead.org> Cc: iommu@lists.linux-foundation.org Cc: Joerg Roedel <jroedel@suse.de> Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andrea Arcangeli <aarcange@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--drivers/iommu/intel-svm.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/iommu/intel-svm.c b/drivers/iommu/intel-svm.c
index f167c0d84ebf..f620dccec8ee 100644
--- a/drivers/iommu/intel-svm.c
+++ b/drivers/iommu/intel-svm.c
@@ -223,14 +223,6 @@ static void intel_change_pte(struct mmu_notifier *mn, struct mm_struct *mm,
223 intel_flush_svm_range(svm, address, 1, 1, 0); 223 intel_flush_svm_range(svm, address, 1, 1, 0);
224} 224}
225 225
226static void intel_invalidate_page(struct mmu_notifier *mn, struct mm_struct *mm,
227 unsigned long address)
228{
229 struct intel_svm *svm = container_of(mn, struct intel_svm, notifier);
230
231 intel_flush_svm_range(svm, address, 1, 1, 0);
232}
233
234/* Pages have been freed at this point */ 226/* Pages have been freed at this point */
235static void intel_invalidate_range(struct mmu_notifier *mn, 227static void intel_invalidate_range(struct mmu_notifier *mn,
236 struct mm_struct *mm, 228 struct mm_struct *mm,
@@ -285,7 +277,6 @@ static void intel_mm_release(struct mmu_notifier *mn, struct mm_struct *mm)
285static const struct mmu_notifier_ops intel_mmuops = { 277static const struct mmu_notifier_ops intel_mmuops = {
286 .release = intel_mm_release, 278 .release = intel_mm_release,
287 .change_pte = intel_change_pte, 279 .change_pte = intel_change_pte,
288 .invalidate_page = intel_invalidate_page,
289 .invalidate_range = intel_invalidate_range, 280 .invalidate_range = intel_invalidate_range,
290}; 281};
291 282