Problems with P4-Clockmod and CPU frequency scaling

If you are going to use CPU frequency scaling on P4 you will probably use p4-clockmod and get in trouble with ondemand governor like me. If you try to switch to the ondemand governor you can see following message in dmesg:

ondemand governor failed, too long transition latency of HW, fallback to performance governor

Solution

Just change the following string in kernel sources arch/x86/kernel/cpu/cpufreq/p4-clockmod.c like here

old string

policy->cpuinfo.transition_latency = 1000000;

new string

policy->cpuinfo.transition_latency = 10000001;

See also

Discussion

Enter your comment. Wiki syntax is allowed:
If you can't read the letters on the image, download this .wav file to get them read to you.