This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:cpufreq:cpufreq [21 Jul 2020 09:05] – [Preferred Interface: sysfs] Sunny Feng | resources:tools-software:linuxdsp:docs:linux-kernel-and-drivers:cpufreq:cpufreq [21 Jul 2020 09:17] (current) – [Change Core Clock Frequency via cpufreq-utils] Sunny Feng | ||
---|---|---|---|
Line 3: | Line 3: | ||
CPU frequency scaling enables the operating system to scale the CPU frequency up or down in order to save power. Clock scaling allows you to change the clock speed of the CPUs on the fly. | CPU frequency scaling enables the operating system to scale the CPU frequency up or down in order to save power. Clock scaling allows you to change the clock speed of the CPUs on the fly. | ||
- | |||
- | More details about ethernet for SC589, please refer to this section Enable Ethernet for ADSP-SC589 EZ-kit board version 2.0 in SC5xx EZ-Kit Linux Quick Start Guide . | ||
- | |||
===== Hardware Setup ===== | ===== Hardware Setup ===== | ||
* ADSP-SC589 Ezkit v1.1 and above, or, | * ADSP-SC589 Ezkit v1.1 and above, or, | ||
Line 14: | Line 11: | ||
The ADSP-SC5xx processors have Clock Generation Unit (CGU) support. The CGU allows program to change the PLL clock frequency and the CCLKn, SYSCLK, SCLKn, and OUTCLK clock scaling. | The ADSP-SC5xx processors have Clock Generation Unit (CGU) support. The CGU allows program to change the PLL clock frequency and the CCLKn, SYSCLK, SCLKn, and OUTCLK clock scaling. | ||
+ | \\ | ||
===== Software Configuration ===== | ===== Software Configuration ===== | ||
==== Enabling CPU Frequency Driver in Linux Kernel ==== | ==== Enabling CPU Frequency Driver in Linux Kernel ==== | ||
Line 35: | Line 33: | ||
\\ | \\ | ||
- | ===== How to Change the CPU cpufreq | + | ===== How to Change the CPU Frequency |
==== Preferred Interface: sysfs ==== | ==== Preferred Interface: sysfs ==== | ||
The preferred interface is located in the sysfs filesystem. If you mounted it at /sys, the cpufreq interface is located in a subdirectory “cpufreq” within the cpu-device directory (e.g. / | The preferred interface is located in the sysfs filesystem. If you mounted it at /sys, the cpufreq interface is located in a subdirectory “cpufreq” within the cpu-device directory (e.g. / | ||
Line 62: | Line 60: | ||
</ | </ | ||
+ | \\ | ||
===== What Is A CPUFreq Governor? ===== | ===== What Is A CPUFreq Governor? ===== | ||
==== Governors In the Linux Kernel ==== | ==== Governors In the Linux Kernel ==== | ||
- | **Performance** | + | === Performance |
The CPUfreq governor “performance” sets the CPU statically to the highest frequency within the borders of scaling_min_freq and scaling_max_freq. | The CPUfreq governor “performance” sets the CPU statically to the highest frequency within the borders of scaling_min_freq and scaling_max_freq. | ||
- | **Powersave** | + | === Powersave |
The CPUfreq governor “powersave” sets the CPU statically to the lowest frequency within the borders of scaling_min_freq and scaling_max_freq. | The CPUfreq governor “powersave” sets the CPU statically to the lowest frequency within the borders of scaling_min_freq and scaling_max_freq. | ||
- | **Userspace** | + | === Userspace |
The CPUfreq governor “userspace” allows the user, or any userspace program running with UID “root”, to set the CPU to a specific frequency by making a sysfs file “scaling_setspeed” available in the CPU-device directory. | The CPUfreq governor “userspace” allows the user, or any userspace program running with UID “root”, to set the CPU to a specific frequency by making a sysfs file “scaling_setspeed” available in the CPU-device directory. | ||
- | **Ondemand** | + | === Ondemand |
The CPUfreq governor “ondemand” sets the CPU depending on the current usage. To do this the CPU must have the capability to switch the frequency very quickly. There are a number of sysfs file accessible parameters: | The CPUfreq governor “ondemand” sets the CPU depending on the current usage. To do this the CPU must have the capability to switch the frequency very quickly. There are a number of sysfs file accessible parameters: | ||
Line 87: | Line 87: | ||
ignore_nice_load: | ignore_nice_load: | ||
- | **Conservative** | + | === Conservative |
The CPUfreq governor “conservative”, | The CPUfreq governor “conservative”, | ||
Line 134: | Line 134: | ||
</ | </ | ||
+ | |||
+ | |||
+ | \\ | ||
+ | ---- | ||
+ | **Back to** [[resources: |