Loading drivers/staging/android/lowmemorykiller.c +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,8 @@ static unsigned long lowmem_count(struct shrinker *s, static atomic_t shift_adj = ATOMIC_INIT(0); static short adj_max_shift = 353; module_param_named(adj_max_shift, adj_max_shift, short, S_IRUGO | S_IWUSR); /* User knob to enable/disable adaptive lmk feature */ static int enable_adaptive_lmk; Loading mm/process_reclaim.c +5 −2 Original line number Diff line number Diff line /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -48,6 +48,10 @@ static unsigned long pressure_max = 90; module_param_named(pressure_min, pressure_min, ulong, S_IRUGO | S_IWUSR); module_param_named(pressure_max, pressure_max, ulong, S_IRUGO | S_IWUSR); static short min_score_adj = 360; module_param_named(min_score_adj, min_score_adj, short, S_IRUGO | S_IWUSR); /* * Scheduling process reclaim workqueue unecessarily * when the reclaim efficiency is low does not make Loading Loading @@ -114,7 +118,6 @@ static void swap_fn(struct work_struct *work) int i; int tasksize; int total_sz = 0; short min_score_adj = 360; int total_scan = 0; int total_reclaimed = 0; int nr_to_reclaim; Loading Loading
drivers/staging/android/lowmemorykiller.c +2 −0 Original line number Diff line number Diff line Loading @@ -96,6 +96,8 @@ static unsigned long lowmem_count(struct shrinker *s, static atomic_t shift_adj = ATOMIC_INIT(0); static short adj_max_shift = 353; module_param_named(adj_max_shift, adj_max_shift, short, S_IRUGO | S_IWUSR); /* User knob to enable/disable adaptive lmk feature */ static int enable_adaptive_lmk; Loading
mm/process_reclaim.c +5 −2 Original line number Diff line number Diff line /* * Copyright (c) 2015, The Linux Foundation. All rights reserved. * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and Loading Loading @@ -48,6 +48,10 @@ static unsigned long pressure_max = 90; module_param_named(pressure_min, pressure_min, ulong, S_IRUGO | S_IWUSR); module_param_named(pressure_max, pressure_max, ulong, S_IRUGO | S_IWUSR); static short min_score_adj = 360; module_param_named(min_score_adj, min_score_adj, short, S_IRUGO | S_IWUSR); /* * Scheduling process reclaim workqueue unecessarily * when the reclaim efficiency is low does not make Loading Loading @@ -114,7 +118,6 @@ static void swap_fn(struct work_struct *work) int i; int tasksize; int total_sz = 0; short min_score_adj = 360; int total_scan = 0; int total_reclaimed = 0; int nr_to_reclaim; Loading