Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1531113
| From | Aaron Lu <aaron.lu@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 1/2] tlb: export tlb_flush_mmu_tlbonly |
| Date | 2016-11-28 09:40 +0100 |
| Message-ID | <sIpDH-8b7-3@gated-at.bofh.it> (permalink) |
| References | <sEpCi-66D-15@gated-at.bofh.it> <sIpDH-8b7-5@gated-at.bofh.it> <sIpDH-8b7-7@gated-at.bofh.it> <sIpDH-8b7-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
The mmu gather logic for tlb flush will be used in mremap case so export
this function.
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
---
include/asm-generic/tlb.h | 1 +
mm/memory.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/asm-generic/tlb.h b/include/asm-generic/tlb.h
index c6d667187608..0f1861db935c 100644
--- a/include/asm-generic/tlb.h
+++ b/include/asm-generic/tlb.h
@@ -119,6 +119,7 @@ struct mmu_gather {
void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long start, unsigned long end);
void tlb_flush_mmu(struct mmu_gather *tlb);
+void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb);
void tlb_finish_mmu(struct mmu_gather *tlb, unsigned long start,
unsigned long end);
extern bool __tlb_remove_page_size(struct mmu_gather *tlb, struct page *page,
diff --git a/mm/memory.c b/mm/memory.c
index e18c57bdc75c..130d82f7d8a2 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -238,7 +238,7 @@ void tlb_gather_mmu(struct mmu_gather *tlb, struct mm_struct *mm, unsigned long
__tlb_reset_range(tlb);
}
-static void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb)
+void tlb_flush_mmu_tlbonly(struct mmu_gather *tlb)
{
if (!tlb->end)
return;
--
2.5.5
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 1/2] tlb: export tlb_flush_mmu_tlbonly Aaron Lu <aaron.lu@intel.com> - 2016-11-28 09:40 +0100
csiph-web