From b04d0d6a989a4989cfa989814116218f9a516a49 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Mon, 1 Mar 2021 14:30:00 -0500 Subject: [PATCH] arch/powerpc/oprofile/cell/spu_task_sync: Use vma_lookup() instead of find_vma_intersection() vma_lookup() is more efficient Signed-off-by: Liam R. Howlett --- arch/powerpc/oprofile/cell/spu_task_sync.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/oprofile/cell/spu_task_sync.c b/arch/powerpc/oprofile/cell/spu_task_sync.c index 47b4d4e9b628..6756746f3f76 100644 --- a/arch/powerpc/oprofile/cell/spu_task_sync.c +++ b/arch/powerpc/oprofile/cell/spu_task_sync.c @@ -333,7 +333,7 @@ get_exec_dcookie_and_offset(struct spu *spu, unsigned int *offsetp, } mmap_read_lock(mm); - vma = find_vma_intersection(mm, spu_ref, spu_ref + 1); + vma = vma_lookup(mm, spu_ref); if (!vma) goto fail_no_image_cookie; -- 2.50.1