xref: /OK3568_Linux_fs/kernel/tools/power/cpupower/README (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThe cpupower package consists of the following elements:
2*4882a593Smuzhiyun
3*4882a593Smuzhiyunrequirements
4*4882a593Smuzhiyun------------
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunOn x86 pciutils is needed at runtime (-lpci).
7*4882a593SmuzhiyunFor compilation pciutils-devel (pci/pci.h) and a gcc version
8*4882a593Smuzhiyunproviding cpuid.h is needed.
9*4882a593SmuzhiyunFor both it's not explicitly checked for (yet).
10*4882a593Smuzhiyun
11*4882a593Smuzhiyun
12*4882a593Smuzhiyunlibcpupower
13*4882a593Smuzhiyun----------
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun"libcpupower" is a library which offers a unified access method for userspace
16*4882a593Smuzhiyuntools and programs to the cpufreq core and drivers in the Linux kernel. This
17*4882a593Smuzhiyunallows for code reduction in userspace tools, a clean implementation of
18*4882a593Smuzhiyunthe interaction to the cpufreq core, and support for both the sysfs and proc
19*4882a593Smuzhiyuninterfaces [depending on configuration, see below].
20*4882a593Smuzhiyun
21*4882a593Smuzhiyun
22*4882a593Smuzhiyuncompilation and installation
23*4882a593Smuzhiyun----------------------------
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunmake
26*4882a593Smuzhiyunsu
27*4882a593Smuzhiyunmake install
28*4882a593Smuzhiyun
29*4882a593Smuzhiyunshould suffice on most systems. It builds libcpupower to put in
30*4882a593Smuzhiyun/usr/lib; cpupower, cpufreq-bench_plot.sh to put in /usr/bin; and
31*4882a593Smuzhiyuncpufreq-bench to put in /usr/sbin. If you want to set up the paths
32*4882a593Smuzhiyundifferently and/or want to configure the package to your specific
33*4882a593Smuzhiyunneeds, you need to open "Makefile" with an editor of your choice and
34*4882a593Smuzhiyunedit the block marked CONFIGURATION.
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunTHANKS
38*4882a593Smuzhiyun------
39*4882a593SmuzhiyunMany thanks to Mattia Dongili who wrote the autotoolization and
40*4882a593Smuzhiyunlibtoolization, the manpages and the italian language file for cpupower;
41*4882a593Smuzhiyunto Dave Jones for his feedback and his dump_psb tool; to Bruno Ducrot for his
42*4882a593Smuzhiyunpowernow-k8-decode and intel_gsic tools as well as the french language file;
43*4882a593Smuzhiyunand to various others commenting on the previous (pre-)releases of
44*4882a593Smuzhiyuncpupower.
45*4882a593Smuzhiyun
46*4882a593Smuzhiyun
47*4882a593Smuzhiyun        Dominik Brodowski
48