The cpufrequtils project provides a single access point for user tools through its library.
Libcpufreq is an outstanding library that simplifies the interaction between userspace tools and the cpufreq core and drivers in the Linux kernel. The library incorporates support for both the sysfs and proc interfaces to provide code reduction and a clean implementation of the cpufreq core.
The "cpufreq-info" function provides current cpufreq settings and debug information to users and bug-hunters. Additionally, the "cpufreq-set" function enables the user to set a specific frequency and/or new cpufreq policies without the need to type "/sys/devices/system/cpu/cpu0/cpufreq" repeatedly.
The installation process for cpufrequtils is straightforward. You only need to run "./configure && make su make install" to build and install the default libcpufreq, cpufreq-set, and cpufreq-info files in /usr/local/lib and /usr/local/bin. Additionally, the autotoolization by Mattia Dongili makes it possible to pass standard options to make and make install, such as "--prefix=/usr", which can be executed correctly.
By default, the sysfs interface is enabled, but the deprecated /proc interface to the cpufreq core in the Linux kernel is disabled. To enable the sysfs interface to work seamlessly, you need to install "libsysfs", which is part of the "sysfsutils" package with sysfsutils-1.0.0 or later being the current requirement. You can pass the option "--disable-sysfs" to ./configure to disable the sysfs interface or "--enable-proc" to enable the (deprecated) /proc interface support.
The latest release of cpufrequtils delivers significant enhancements. The cpufrequtils library can now rely on the (deprecated) proc interface to the Linux kernel cpufreq subsystem. Additionally, the update of the cpufreq mailing list has brought changes in the bug report address.
Version 005: N/A