/* p = (nr <= nl) ? l : l*nr/nl  */
static u64 __sched_period(unsigned long nr_running)
/* p = (nr <= nl) ? l : l*nr/nl  */
static u64 __sched_period(unsigned long nr_running)
{
	u64 period = sysctl_sched_latency;
	unsigned long nr_latency = sched_nr_latency;
	if (unlikely(nr_running > nr_latency)) {
		period = sysctl_sched_min_granularity;
		period *= nr_running;
	}
	return period;
}