summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2013-12-31 13:57:55 +0200
committerTom Cherry <tcherry@nvidia.com>2014-01-22 16:02:41 -0800
commitc0dcb6d1228081286d77cd9d2d955196a53fee34 (patch)
tree8293945b61d27d6bda39b1b827e7425519cac7ad /kernel/sysctl.c
parentd985815d1f996e7f43eacef69b728e9c404882a6 (diff)
mm: Add TLB flush all threshold
With arm64 the range passed to flush_tlb_kernel_range() can be huge. Add a parameter for how large area will be flushed by area. Beyond that the whole TLB is flushed. Set the threshold to 512MB. Bug 1432908 Change-Id: I685fc2c3ffaad8979bfa8fde27e8c2948a2104cc Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: http://git-master/r/351026 Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 6d8d4a44dd57..2ba77228ff97 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -96,6 +96,7 @@
/* External variables not in a header file. */
extern int sysctl_lazy_vfree_pages;
+extern int sysctl_lazy_vfree_tlb_flush_all_threshold;
extern int sysctl_overcommit_memory;
extern int sysctl_overcommit_ratio;
extern int max_threads;
@@ -1078,6 +1079,13 @@ static struct ctl_table vm_table[] = {
.proc_handler = proc_dointvec,
},
{
+ .procname = "lazy_vfree_tlb_flush_all_threshold",
+ .data = &sysctl_lazy_vfree_tlb_flush_all_threshold,
+ .maxlen = sizeof(sysctl_lazy_vfree_tlb_flush_all_threshold),
+ .mode = 0644,
+ .proc_handler = proc_dointvec,
+ },
+ {
.procname = "overcommit_memory",
.data = &sysctl_overcommit_memory,
.maxlen = sizeof(sysctl_overcommit_memory),