All of lore.kernel.org
 help / color / mirror / Atom feed
* /proc/sys/cpu interface and elanfreq on linux 2.4.20
@ 2003-09-17  0:10 Michael Teichgräber
  2003-09-17  9:25 ` Toula Michael
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Teichgräber @ 2003-09-17  0:10 UTC (permalink / raw)
  To: cpufreq

Hello,

I applied a cpufreq patch (http://www.codemonkey.org.uk/projects\
/cpufreq/cpufreq-2.4.21-2.gz) to a linux 2.4.20 tree without any
problems, and compiled with the following (default) settings for an
AMD Elan cpu:

    CONFIG_CPU_FREQ=y
    CONFIG_CPU_FREQ_TABLE=y
    CONFIG_CPU_FREQ_PROC_INTF=y
    CONFIG_CPU_FREQ_GOV_USERSPACE=y
    CONFIG_CPU_FREQ_24_API=y
    CONFIG_ELAN_CPUFREQ=m


The just created module `elanfreq.o' has been loaded smoothly into the
kernel, and in /proc/cpufreq I can see

          minimum CPU frequency  -  maximum CPU frequency  -  policy
CPU  0         1000 kHz (  1 %)  -      66000 kHz (100 %)  - performance


But I wonder about why both /proc/sys/cpu/0/speed-min and -max contain
zero, and `speed' always shows the maximum frequency. If I echo a
value out of the list in elanfreq.c into `speed', there is no
reaction, elanfreq_target() will not be called (with one exception:
When initializing, the value specified by `max_freq' will be set
twice via elanfreq_target).

Am I missing something, does perhaps "deprecated interfaces" mean, the
userspace access via /proc/sys/cpu might not work?


-- 
Michael Teichgräber

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-09-17 11:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-17  0:10 /proc/sys/cpu interface and elanfreq on linux 2.4.20 Michael Teichgräber
2003-09-17  9:25 ` Toula Michael
2003-09-17 11:56   ` Michael Teichgräber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.