sched: cleanup, sched_granularity -> sched_min_granularity
due to adaptive granularity scheduling the role of sched_granularity has changed to "minimum granularity", so rename the variable (and the tunable) accordingly. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
This commit is contained in:
@@ -40,7 +40,7 @@ unsigned int sysctl_sched_latency __read_mostly = 20000000ULL;
|
||||
* Minimal preemption granularity for CPU-bound tasks:
|
||||
* (default: 2 msec, units: nanoseconds)
|
||||
*/
|
||||
unsigned int sysctl_sched_granularity __read_mostly = 2000000ULL;
|
||||
unsigned int sysctl_sched_min_granularity __read_mostly = 2000000ULL;
|
||||
|
||||
/*
|
||||
* SCHED_BATCH wake-up granularity.
|
||||
@@ -258,7 +258,7 @@ sched_granularity(struct cfs_rq *cfs_rq)
|
||||
|
||||
if (nr > 1) {
|
||||
gran = gran/nr - gran/nr/nr;
|
||||
gran = max(gran, sysctl_sched_granularity);
|
||||
gran = max(gran, sysctl_sched_min_granularity);
|
||||
}
|
||||
|
||||
return gran;
|
||||
|
Reference in New Issue
Block a user