[ltp] cpufreqd doesn't change frequency any more

Joachim Schrod linux-thinkpad@linux-thinkpad.org
Fri, 30 Jul 2004 17:45:59 +0200


>>>>> "MG" == Marius Gedminas <mgedmin@b4net.lt> writes:

MG> You can only manually set the CPU speed when policy (as shown in
MG> /proc/cpufreq) is "userspace".

MG> Try

MG>   echo 924000:1400000:userspace > /proc/cpufreq
MG>   cat /proc/sys/cpu/0/speed-max > /proc/sys/cpu/0/speed

Thanks, this led to the workaround I was looking for.

FYI, the commands above didn't work exactly. First, I need to set the
CPU speed to the minimum frequency, then setting it to the maximum
frequency succeeds. I.e.,

    cd /proc
    echo '0%100%userspace' >cpufreq
    cd sys/cpu/0
    cat speed-min >speed
    cat speed-max >speed

works. I think this is due to my assumption that speedstep-centrino is
not accepting new modes, and the commands above seems to trigger a
reset.

Afterwards a HUP to cpufreqd makes it control my frequency again
properly.

Cheers,
	Joachim

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim		     The most exciting phrase to hear in science, the
Rödermark, Germany   one that heralds new discoveries, is not "Eureka!"
<jschrod@acm.org>    (I found it!) but "That's funny..." [Isaac Asimov]