diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2016-09-28 14:53:17 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2017-11-21 18:21:08 -0500 |
commit | 82385732b1c9d6a22942b5fe6e48a99891cb806f (patch) | |
tree | cf0c5e5c0ca3f7490eaab51f8346368d24875e9c | |
parent | 5b9027d6d044d4917992119d184ab0bb616489cc (diff) |
ARC: perf: avoid vmalloc backed mmap
For non-alising Dcache, vmalloc is not needed.
vmalloc triggers additonal D-TLB Misses in the perf interrupt code path
making it slightly inefficient as evident from hackbench runs below.
| [ARCLinux]# perf stat -e dTLB-load-misses --repeat 5 hackbench
| Running with 10*40 (== 400) tasks.
| Time: 35.060
| ...
| Performance counter stats for 'hackbench' (5 runs):
Before: 399235 dTLB-load-misses ( +- 2.08% )
After : 397676 dTLB-load-misses ( +- 2.27% )
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/Kconfig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/Kconfig b/arch/arc/Kconfig index c84e67fdea09..f3cad98eeb8f 100644 --- a/arch/arc/Kconfig +++ b/arch/arc/Kconfig | |||
@@ -39,7 +39,7 @@ config ARC | |||
39 | select OF | 39 | select OF |
40 | select OF_EARLY_FLATTREE | 40 | select OF_EARLY_FLATTREE |
41 | select OF_RESERVED_MEM | 41 | select OF_RESERVED_MEM |
42 | select PERF_USE_VMALLOC | 42 | select PERF_USE_VMALLOC if ARC_CACHE_VIPT_ALIASING |
43 | select HAVE_DEBUG_STACKOVERFLOW | 43 | select HAVE_DEBUG_STACKOVERFLOW |
44 | select HAVE_GENERIC_DMA_COHERENT | 44 | select HAVE_GENERIC_DMA_COHERENT |
45 | select HAVE_KERNEL_GZIP | 45 | select HAVE_KERNEL_GZIP |