⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user-guide.txt

📁 linux 内核源代码
💻 TXT
字号:
     CPU frequency and voltage scaling code in the Linux(TM) kernel		         L i n u x    C P U F r e q			     U S E R   G U I D E		    Dominik Brodowski  <linux@brodo.de>   Clock scaling allows you to change the clock speed of the CPUs on the    fly. This is a nice method to save battery power, because the lower            the clock speed, the less power the CPU consumes.Contents:---------1. Supported Architectures and Processors1.1 ARM1.2 x861.3 sparc641.4 ppc1.5 SuperH2. "Policy" / "Governor"?2.1 Policy2.2 Governor3. How to change the CPU cpufreq policy and/or speed3.1 Preferred interface: sysfs3.2 Deprecated interfaces1. Supported Architectures and Processors=========================================1.1 ARM-------The following ARM processors are supported by cpufreq:ARM IntegratorARM-SA1100ARM-SA11101.2 x86-------The following processors for the x86 architecture are supported by cpufreq:AMD Elan - SC400, SC410AMD mobile K6-2+AMD mobile K6-3+AMD mobile DuronAMD mobile AthlonAMD OpteronAMD Athlon 64Cyrix Media GXmIntel mobile PIII and Intel mobile PIII-M on certain chipsetsIntel Pentium 4, Intel XeonIntel Pentium M (Centrino)National Semiconductors Geode GXTransmeta CrusoeTransmeta EfficeonVIA Cyrix 3 / C3various processors on some ACPI 2.0-compatible systems [*][*] Only if "ACPI Processor Performance States" are availableto the ACPI<->BIOS interface.1.3 sparc64-----------The following processors for the sparc64 architecture are supported bycpufreq:UltraSPARC-III1.4 ppc-------Several "PowerBook" and "iBook2" notebooks are supported.1.5 SuperH----------The following SuperH processors are supported by cpufreq:SH-3SH-42. "Policy" / "Governor" ?==========================Some CPU frequency scaling-capable processor switch between variousfrequencies and operating voltages "on the fly" without any kernel oruser involvement. This guarantees very fast switching to a frequencywhich is high enough to serve the user's needs, but low enough to savepower.2.1 Policy----------On these systems, all you can do is select the lower and upperfrequency limit as well as whether you want more aggressivepower-saving or more instantly available processing power.2.2 Governor------------On all other cpufreq implementations, these boundaries still need tobe set. Then, a "governor" must be selected. Such a "governor" decideswhat speed the processor shall run within the boundaries. One such"governor" is the "userspace" governor. This one allows the user - ora yet-to-implement userspace program - to decide what specific speedthe processor shall run at.3. How to change the CPU cpufreq policy and/or speed====================================================3.1 Preferred Interface: sysfs------------------------------The preferred interface is located in the sysfs filesystem. If youmounted it at /sys, the cpufreq interface is located in a subdirectory"cpufreq" within the cpu-device directory(e.g. /sys/devices/system/cpu/cpu0/cpufreq/ for the first CPU).cpuinfo_min_freq :		this file shows the minimum operating				frequency the processor can run at(in kHz) cpuinfo_max_freq :		this file shows the maximum operating				frequency the processor can run at(in kHz) scaling_driver :		this file shows what cpufreq driver is				used to set the frequency on this CPUscaling_available_governors :	this file shows the CPUfreq governors				available in this kernel. You can see the				currently activated governor inscaling_governor,		and by "echoing" the name of another				governor you can change it. Please note				that some governors won't load - they only				work on some specific architectures or				processors.scaling_min_freq andscaling_max_freq		show the current "policy limits" (in				kHz). By echoing new values into these				files, you can change these limits.				NOTE: when setting a policy you need to				first set scaling_max_freq, then				scaling_min_freq.If you have selected the "userspace" governor which allows you toset the CPU operating frequency to a specific value, you can read outthe current frequency inscaling_setspeed.		By "echoing" a new frequency into this				you can change the speed of the CPU,				but only within the limits of				scaling_min_freq and scaling_max_freq.				3.2 Deprecated Interfaces-------------------------Depending on your kernel configuration, you might find the following cpufreq-related files:/proc/cpufreq/proc/sys/cpu/*/speed/proc/sys/cpu/*/speed-min/proc/sys/cpu/*/speed-maxThese are files for deprecated interfaces to cpufreq, which offer farless functionality. Because of this, these interfaces aren't describedhere.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -