unsigned long arch_scale_freq_power(struct sched_domain *sd, int cpu)
{
	if (boot_cpu_has(X86_FEATURE_APERFMPERF))
		return scale_aperfmperf();


	return default_scale_freq_power(sd, cpu);
}
示例#2
0
文件: sched.c 项目: CSCLOG/beaglebone
unsigned long arch_scale_freq_power(struct sched_domain *sd, int cpu)
{
	/*
	 * do aperf/mperf on the cpu level because it includes things
	 * like turbo mode, which are relevant to full cores.
	 */
	if (boot_cpu_has(X86_FEATURE_APERFMPERF))
		return scale_aperfmperf();

	/*
	 * maybe have something cpufreq here
	 */

	return default_scale_freq_power(sd, cpu);
}