summaryrefslogtreecommitdiff
path: root/kernel/sched/hmp.c
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2017-02-09 22:09:26 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2017-02-09 22:09:26 -0800
commit0e390526588c733d1ae5445037ceb8d915be17b1 (patch)
treeea1ddb5d7c495d92d6d8eee8985ab3e5b348d9e2 /kernel/sched/hmp.c
parent3bbac5a6d9fb3254e7d9bb4715a3b354208371da (diff)
parentb61c01f52f1ea4ddaf2574370859c94ad5dd577d (diff)
Merge "sched: remove sched_new_task_windows tunable"
Diffstat (limited to 'kernel/sched/hmp.c')
-rw-r--r--kernel/sched/hmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched/hmp.c b/kernel/sched/hmp.c
index 5de0bac5e27e..3acf96d1f1d6 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
@@ -1844,7 +1844,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