]> git.baikalelectronics.ru Git - kernel.git/commitdiff
powerpc/xive: remove unnecessary unmap_kernel_range
authorNicholas Piggin <npiggin@gmail.com>
Fri, 30 Apr 2021 05:58:58 +0000 (22:58 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 30 Apr 2021 18:20:40 +0000 (11:20 -0700)
iounmap will remove ptes.

Link: https://lkml.kernel.org/r/20210322021806.892164-4-npiggin@gmail.com
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Cédric Le Goater <clg@kaod.org>
Cc: Uladzislau Rezki <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/sysdev/xive/common.c

index 595310e056f4dec4d00e10bafd6f1f639e6ec9a3..d6c2069cc828939ef3da26c48e74e46ceb781c63 100644 (file)
@@ -959,16 +959,12 @@ EXPORT_SYMBOL_GPL(is_xive_irq);
 void xive_cleanup_irq_data(struct xive_irq_data *xd)
 {
        if (xd->eoi_mmio) {
-               unmap_kernel_range((unsigned long)xd->eoi_mmio,
-                                  1u << xd->esb_shift);
                iounmap(xd->eoi_mmio);
                if (xd->eoi_mmio == xd->trig_mmio)
                        xd->trig_mmio = NULL;
                xd->eoi_mmio = NULL;
        }
        if (xd->trig_mmio) {
-               unmap_kernel_range((unsigned long)xd->trig_mmio,
-                                  1u << xd->esb_shift);
                iounmap(xd->trig_mmio);
                xd->trig_mmio = NULL;
        }