diff options
author | Steve Capper <steve.capper@linaro.org> | 2014-10-09 18:29:25 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-10-09 22:26:01 -0400 |
commit | 29e5694054149acd25b0d5538c95fb6d64478315 (patch) | |
tree | 1f496525d51e1989b3415bf275034213a639bbc8 /arch/arm64/mm | |
parent | 5e5f6dc10546f5c03bc572e3ba3089af30c66e2d (diff) |
arm64: mm: enable RCU fast_gup
Activate the RCU fast_gup for ARM64. We also need to force THP splits to
broadcast an IPI s.t. we block in the fast_gup page walker. As THP
splits are comparatively rare, this should not lead to a noticeable
performance degradation.
Some pre-requisite functions pud_write and pud_page are also added.
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Steve Capper <steve.capper@linaro.org>
Tested-by: Dann Frazier <dann.frazier@canonical.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/arm64/mm')
-rw-r--r-- | arch/arm64/mm/flush.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm64/mm/flush.c b/arch/arm64/mm/flush.c index 0d64089d28b5..b6f14e8d2121 100644 --- a/arch/arm64/mm/flush.c +++ b/arch/arm64/mm/flush.c | |||
@@ -104,3 +104,19 @@ EXPORT_SYMBOL(flush_dcache_page); | |||
104 | */ | 104 | */ |
105 | EXPORT_SYMBOL(flush_cache_all); | 105 | EXPORT_SYMBOL(flush_cache_all); |
106 | EXPORT_SYMBOL(flush_icache_range); | 106 | EXPORT_SYMBOL(flush_icache_range); |
107 | |||
108 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | ||
109 | #ifdef CONFIG_HAVE_RCU_TABLE_FREE | ||
110 | void pmdp_splitting_flush(struct vm_area_struct *vma, unsigned long address, | ||
111 | pmd_t *pmdp) | ||
112 | { | ||
113 | pmd_t pmd = pmd_mksplitting(*pmdp); | ||
114 | |||
115 | VM_BUG_ON(address & ~PMD_MASK); | ||
116 | set_pmd_at(vma->vm_mm, address, pmdp, pmd); | ||
117 | |||
118 | /* dummy IPI to serialise against fast_gup */ | ||
119 | kick_all_cpus_sync(); | ||
120 | } | ||
121 | #endif /* CONFIG_HAVE_RCU_TABLE_FREE */ | ||
122 | #endif /* CONFIG_TRANSPARENT_HUGEPAGE */ | ||