Difference between revisions of "CPU"

From FriendlyELEC WiKi
Jump to: navigation, search
(Created page with "==S5P4418/S5P6818 降低CPU频率== ===Method 1=== The following command is used to temporarily limit the maximum CPU frequency to 1GHz: echo 1000000 > /sys/devices/system/cp...")
 
(Method 2)
Line 7: Line 7:
 
===Method 2===
 
===Method 2===
 
Modify the kernel source code:
 
Modify the kernel source code:
 +
<syntaxhighlight lang="bash">
 
arch/arm/plat-s5p4418/nanopi2/device.c  
 
arch/arm/plat-s5p4418/nanopi2/device.c  
 +
</syntaxhighlight>
  
 
Delete the unwanted frequencies in the following array:
 
Delete the unwanted frequencies in the following array:
 +
<syntaxhighlight lang="bash">
 
static unsigned long dfs_freq_table[][2] = {
 
static unsigned long dfs_freq_table[][2] = {
 
     { 1400000, 1200000, },
 
     { 1400000, 1200000, },
Line 20: Line 23:
 
     {  400000,  940000, },
 
     {  400000,  940000, },
 
};
 
};
 +
</syntaxhighlight>

Revision as of 05:12, 4 August 2018

1 S5P4418/S5P6818 降低CPU频率

1.1 Method 1

The following command is used to temporarily limit the maximum CPU frequency to 1GHz: echo 1000000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq


1.2 Method 2

Modify the kernel source code:

arch/arm/plat-s5p4418/nanopi2/device.c

Delete the unwanted frequencies in the following array:

static unsigned long dfs_freq_table[][2] = {
    { 1400000, 1200000, },
    { 1200000, 1120000, },
    { 1000000, 1040000, },
    {  800000, 1000000, },
    {  700000,  940000, },
    {  600000,  940000, },
    {  500000,  940000, },
    {  400000,  940000, },
};