From 688ad4c9cddd4b1729d7eb320df317ea9cdc143a Mon Sep 17 00:00:00 2001 From: syphyr Date: Fri, 12 Apr 2019 23:47:33 +0200 Subject: [PATCH] Revert "lowmemorykiller: Introduce sysfs node for ALMK and PPR adj threshold" This reverts commit b0c67828b5843600ed92f5da92ee9fc6bd775f5e. --- drivers/staging/android/lowmemorykiller.c | 2 -- mm/process_reclaim.c | 7 ++----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/drivers/staging/android/lowmemorykiller.c b/drivers/staging/android/lowmemorykiller.c index 9f14436c14b9..21e5c0e35802 100644 --- a/drivers/staging/android/lowmemorykiller.c +++ b/drivers/staging/android/lowmemorykiller.c @@ -86,8 +86,6 @@ static unsigned long lowmem_deathpending_timeout; 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; diff --git a/mm/process_reclaim.c b/mm/process_reclaim.c index 0b6aea811d61..5afd106998dc 100644 --- a/mm/process_reclaim.c +++ b/mm/process_reclaim.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved. + * Copyright (c) 2015, 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 @@ -48,10 +48,6 @@ 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 @@ -118,6 +114,7 @@ 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;