diff options
| author | Jérôme Glisse <jglisse@redhat.com> | 2017-08-31 17:17:28 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-08-31 19:12:59 -0400 |
| commit | d1d5762e4767324ce4ec32f9b2d2aaccfd87f664 (patch) | |
| tree | 015664f8fd48f8f49f4131f7de2b17324c0c5646 | |
| parent | 369ea8242c0fb5239b4ddf0dc568f694bd244de4 (diff) | |
powerpc/powernv: update to new mmu_notifier semantic
Calls to mmu_notifier_invalidate_page() were replaced by calls to
mmu_notifier_invalidate_range() and now are 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: linuxppc-dev@lists.ozlabs.org
Cc: Alistair Popple <alistair@popple.id.au>
Cc: Michael Ellerman <mpe@ellerman.id.au>
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-- | arch/powerpc/platforms/powernv/npu-dma.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/arch/powerpc/platforms/powernv/npu-dma.c b/arch/powerpc/platforms/powernv/npu-dma.c index b5d960d6db3d..4c7b8591f737 100644 --- a/arch/powerpc/platforms/powernv/npu-dma.c +++ b/arch/powerpc/platforms/powernv/npu-dma.c | |||
| @@ -614,15 +614,6 @@ static void pnv_npu2_mn_change_pte(struct mmu_notifier *mn, | |||
| 614 | mmio_invalidate(npu_context, 1, address, true); | 614 | mmio_invalidate(npu_context, 1, address, true); |
| 615 | } | 615 | } |
| 616 | 616 | ||
| 617 | static void pnv_npu2_mn_invalidate_page(struct mmu_notifier *mn, | ||
| 618 | struct mm_struct *mm, | ||
| 619 | unsigned long address) | ||
| 620 | { | ||
| 621 | struct npu_context *npu_context = mn_to_npu_context(mn); | ||
| 622 | |||
| 623 | mmio_invalidate(npu_context, 1, address, true); | ||
| 624 | } | ||
| 625 | |||
| 626 | static void pnv_npu2_mn_invalidate_range(struct mmu_notifier *mn, | 617 | static void pnv_npu2_mn_invalidate_range(struct mmu_notifier *mn, |
| 627 | struct mm_struct *mm, | 618 | struct mm_struct *mm, |
| 628 | unsigned long start, unsigned long end) | 619 | unsigned long start, unsigned long end) |
| @@ -640,7 +631,6 @@ static void pnv_npu2_mn_invalidate_range(struct mmu_notifier *mn, | |||
| 640 | static const struct mmu_notifier_ops nv_nmmu_notifier_ops = { | 631 | static const struct mmu_notifier_ops nv_nmmu_notifier_ops = { |
| 641 | .release = pnv_npu2_mn_release, | 632 | .release = pnv_npu2_mn_release, |
| 642 | .change_pte = pnv_npu2_mn_change_pte, | 633 | .change_pte = pnv_npu2_mn_change_pte, |
| 643 | .invalidate_page = pnv_npu2_mn_invalidate_page, | ||
| 644 | .invalidate_range = pnv_npu2_mn_invalidate_range, | 634 | .invalidate_range = pnv_npu2_mn_invalidate_range, |
| 645 | }; | 635 | }; |
| 646 | 636 | ||
