diff options
author | Joerg Roedel <jroedel@suse.de> | 2014-07-30 10:04:38 -0400 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2014-07-30 10:07:49 -0400 |
commit | 8301da53fbc1dff07c96f7ebf32bda331e4775e3 (patch) | |
tree | 6323f43c2c91dca6f26eb43716b61a62e64d3b07 /drivers/iommu | |
parent | fcaa96060809224c4d2092e1e0d6efcf0d342bb4 (diff) |
iommu/amd: Remove change_pte mmu_notifier call-back
All calls to this call-back are wrapped with
mmu_notifer_invalidate_range_start()/end(), making this
notifier pretty useless, so remove it.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Tested-by: Oded Gabbay <oded.gabbay@amd.com>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd_iommu_v2.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c index 2b7de882e91c..524fd67a85b1 100644 --- a/drivers/iommu/amd_iommu_v2.c +++ b/drivers/iommu/amd_iommu_v2.c | |||
@@ -406,14 +406,6 @@ static int mn_clear_flush_young(struct mmu_notifier *mn, | |||
406 | return 0; | 406 | return 0; |
407 | } | 407 | } |
408 | 408 | ||
409 | static void mn_change_pte(struct mmu_notifier *mn, | ||
410 | struct mm_struct *mm, | ||
411 | unsigned long address, | ||
412 | pte_t pte) | ||
413 | { | ||
414 | __mn_flush_page(mn, address); | ||
415 | } | ||
416 | |||
417 | static void mn_invalidate_page(struct mmu_notifier *mn, | 409 | static void mn_invalidate_page(struct mmu_notifier *mn, |
418 | struct mm_struct *mm, | 410 | struct mm_struct *mm, |
419 | unsigned long address) | 411 | unsigned long address) |
@@ -484,7 +476,6 @@ static void mn_release(struct mmu_notifier *mn, struct mm_struct *mm) | |||
484 | static struct mmu_notifier_ops iommu_mn = { | 476 | static struct mmu_notifier_ops iommu_mn = { |
485 | .release = mn_release, | 477 | .release = mn_release, |
486 | .clear_flush_young = mn_clear_flush_young, | 478 | .clear_flush_young = mn_clear_flush_young, |
487 | .change_pte = mn_change_pte, | ||
488 | .invalidate_page = mn_invalidate_page, | 479 | .invalidate_page = mn_invalidate_page, |
489 | .invalidate_range_start = mn_invalidate_range_start, | 480 | .invalidate_range_start = mn_invalidate_range_start, |
490 | .invalidate_range_end = mn_invalidate_range_end, | 481 | .invalidate_range_end = mn_invalidate_range_end, |