]> git.hungrycats.org Git - linux/commit
[CPUFREQ] Move cpufreq_get() from the userspace governor to the core.
authorDave Jones <davej@redhat.com>
Fri, 7 May 2004 16:08:05 +0000 (17:08 +0100)
committerDave Jones <davej@delerium.codemonkey.org.uk>
Fri, 7 May 2004 16:08:05 +0000 (17:08 +0100)
commit657b1437a4dde694d5153384d79540aa4909be05
tree6784b77a80ef40d4db4b1fc3e9a0442d58eeea20
parentf962f4e7410a475a44ba3711568875a7f8b7df42
[CPUFREQ] Move cpufreq_get() from the userspace governor to the core.
Contrary to the previous implementation, it now calls the cpufreq driver,
and reads out the _actual_ current frequency, and not the frequency the
CPUfreq core _thinks_ the CPU is running at. Most cpufreq drivers do provide
such a "hw get" function (only ACPI-io can definitely not be supported,
I'm not sure about sh, sparc64 and powermac) anyway, and it is useful for
other issues.
drivers/cpufreq/cpufreq.c
drivers/cpufreq/cpufreq_userspace.c
include/linux/cpufreq.h