On 11/19/2010 6:39 AM, Andriy Gapon wrote:
> 
> I am thinking about providing two APIs for this.
> 
> 1. KPI
> void cpu_get_a_m_perf(u_int cpu, uint64_t *aperf, uint64_t *mperf);
> 
> 2. Userland
> sysctl dev.cpu.N.aperf_mperf that returns two UQUAD values.
> 
> But I am not sure where to put the code for both APIs.
> Adding another device under cpu seems like an overkill.

These can be exported as a common interface from cpufreq
(dev,cpu.X.perf_stats) and supplied by the child acpi_perf driver on
each cpu.

-- 
Nate

_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to