diff options
author | Jérôme Glisse <jglisse@redhat.com> | 2017-08-31 17:17:32 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-31 19:12:59 -0400 |
commit | f0d1c713d66d7b16527568e79528964cf4b5513d (patch) | |
tree | 7a6e711b92c795ceaafa7bcefea86182d097ab05 | |
parent | 7def96f0a97310c92e6145c776164af479fb1591 (diff) |
iommu/amd: 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: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
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/amd_iommu_v2.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c index 6629c472eafd..dccf5b76eff2 100644 --- a/drivers/iommu/amd_iommu_v2.c +++ b/drivers/iommu/amd_iommu_v2.c | |||
@@ -391,13 +391,6 @@ static int mn_clear_flush_young(struct mmu_notifier *mn, | |||
391 | return 0; | 391 | return 0; |
392 | } | 392 | } |
393 | 393 | ||
394 | static void mn_invalidate_page(struct mmu_notifier *mn, | ||
395 | struct mm_struct *mm, | ||
396 | unsigned long address) | ||
397 | { | ||
398 | __mn_flush_page(mn, address); | ||
399 | } | ||
400 | |||
401 | static void mn_invalidate_range(struct mmu_notifier *mn, | 394 | static void mn_invalidate_range(struct mmu_notifier *mn, |
402 | struct mm_struct *mm, | 395 | struct mm_struct *mm, |
403 | unsigned long start, unsigned long end) | 396 | unsigned long start, unsigned long end) |
@@ -436,7 +429,6 @@ static void mn_release(struct mmu_notifier *mn, struct mm_struct *mm) | |||
436 | static const struct mmu_notifier_ops iommu_mn = { | 429 | static const struct mmu_notifier_ops iommu_mn = { |
437 | .release = mn_release, | 430 | .release = mn_release, |
438 | .clear_flush_young = mn_clear_flush_young, | 431 | .clear_flush_young = mn_clear_flush_young, |
439 | .invalidate_page = mn_invalidate_page, | ||
440 | .invalidate_range = mn_invalidate_range, | 432 | .invalidate_range = mn_invalidate_range, |
441 | }; | 433 | }; |
442 | 434 | ||