|
@@ -35,12 +35,14 @@
|
|
* run vmstat and monitor the context-switches (cs) field)
|
|
* run vmstat and monitor the context-switches (cs) field)
|
|
*/
|
|
*/
|
|
unsigned int sysctl_sched_latency = 5000000ULL;
|
|
unsigned int sysctl_sched_latency = 5000000ULL;
|
|
|
|
+unsigned int normalized_sysctl_sched_latency = 5000000ULL;
|
|
|
|
|
|
/*
|
|
/*
|
|
* Minimal preemption granularity for CPU-bound tasks:
|
|
* Minimal preemption granularity for CPU-bound tasks:
|
|
* (default: 1 msec * (1 + ilog(ncpus)), units: nanoseconds)
|
|
* (default: 1 msec * (1 + ilog(ncpus)), units: nanoseconds)
|
|
*/
|
|
*/
|
|
unsigned int sysctl_sched_min_granularity = 1000000ULL;
|
|
unsigned int sysctl_sched_min_granularity = 1000000ULL;
|
|
|
|
+unsigned int normalized_sysctl_sched_min_granularity = 1000000ULL;
|
|
|
|
|
|
/*
|
|
/*
|
|
* is kept at sysctl_sched_latency / sysctl_sched_min_granularity
|
|
* is kept at sysctl_sched_latency / sysctl_sched_min_granularity
|
|
@@ -70,6 +72,7 @@ unsigned int __read_mostly sysctl_sched_compat_yield;
|
|
* have immediate wakeup/sleep latencies.
|
|
* have immediate wakeup/sleep latencies.
|
|
*/
|
|
*/
|
|
unsigned int sysctl_sched_wakeup_granularity = 1000000UL;
|
|
unsigned int sysctl_sched_wakeup_granularity = 1000000UL;
|
|
|
|
+unsigned int normalized_sysctl_sched_wakeup_granularity = 1000000UL;
|
|
|
|
|
|
const_debug unsigned int sysctl_sched_migration_cost = 500000UL;
|
|
const_debug unsigned int sysctl_sched_migration_cost = 500000UL;
|
|
|
|
|
|
@@ -1890,6 +1893,17 @@ move_one_task_fair(struct rq *this_rq, int this_cpu, struct rq *busiest,
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+static void rq_online_fair(struct rq *rq)
|
|
|
|
+{
|
|
|
|
+ update_sysctl();
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+static void rq_offline_fair(struct rq *rq)
|
|
|
|
+{
|
|
|
|
+ update_sysctl();
|
|
|
|
+}
|
|
|
|
+
|
|
#endif /* CONFIG_SMP */
|
|
#endif /* CONFIG_SMP */
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -2035,6 +2049,8 @@ static const struct sched_class fair_sched_class = {
|
|
|
|
|
|
.load_balance = load_balance_fair,
|
|
.load_balance = load_balance_fair,
|
|
.move_one_task = move_one_task_fair,
|
|
.move_one_task = move_one_task_fair,
|
|
|
|
+ .rq_online = rq_online_fair,
|
|
|
|
+ .rq_offline = rq_offline_fair,
|
|
#endif
|
|
#endif
|
|
|
|
|
|
.set_curr_task = set_curr_task_fair,
|
|
.set_curr_task = set_curr_task_fair,
|