From b61c01f52f1ea4ddaf2574370859c94ad5dd577d Mon Sep 17 00:00:00 2001 From: Pavankumar Kondeti Date: Wed, 8 Feb 2017 09:33:22 +0530 Subject: sched: remove sched_new_task_windows tunable The sched_new_task_windows tunable is set to 5 in the scheduler and it is not changed from user space. Remove this unused tunable. Change-Id: I771e12b44876efe75ce87a90e4e9d69c22168b64 Signed-off-by: Pavankumar Kondeti --- kernel/sched/hmp.c | 4 ++-- kernel/sysctl.c | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'kernel') diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c index 6379de764236..6f236f85a7dc 100644 --- a/kernel/sched/hmp.c +++ b/kernel/sched/hmp.c @@ -712,7 +712,7 @@ __read_mostly unsigned int sysctl_sched_cpu_high_irqload = (10 * NSEC_PER_MSEC); unsigned int __read_mostly sysctl_sched_enable_thread_grouping; -__read_mostly unsigned int sysctl_sched_new_task_windows = 5; +#define SCHED_NEW_TASK_WINDOWS 5 #define SCHED_FREQ_ACCOUNT_WAIT_TIME 0 @@ -1843,7 +1843,7 @@ static int account_busy_for_cpu_time(struct rq *rq, struct task_struct *p, static inline bool is_new_task(struct task_struct *p) { - return p->ravg.active_windows < sysctl_sched_new_task_windows; + return p->ravg.active_windows < SCHED_NEW_TASK_WINDOWS; } #define INC_STEP 8 diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 7112dc54d88e..ffa85996313c 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -448,13 +448,6 @@ static struct ctl_table kern_table[] = { .mode = 0644, .proc_handler = proc_dointvec, }, - { - .procname = "sched_new_task_windows", - .data = &sysctl_sched_new_task_windows, - .maxlen = sizeof(unsigned int), - .mode = 0644, - .proc_handler = sched_window_update_handler, - }, { .procname = "sched_pred_alert_freq", .data = &sysctl_sched_pred_alert_freq, -- cgit v1.2.3