All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael Teichgräber" <mt@wmipf.in-berlin.de>
To: cpufreq@www.linux.org.uk
Subject: /proc/sys/cpu interface and elanfreq on linux 2.4.20
Date: Wed, 17 Sep 2003 02:10:49 +0200	[thread overview]
Message-ID: <87znh4e0l2.fsf@wmipf.in-berlin.de> (raw)

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

             reply	other threads:[~2003-09-17  0:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-17  0:10 Michael Teichgräber [this message]
2003-09-17  9:25 ` /proc/sys/cpu interface and elanfreq on linux 2.4.20 Toula Michael
2003-09-17 11:56   ` Michael Teichgräber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87znh4e0l2.fsf@wmipf.in-berlin.de \
    --to=mt@wmipf.in-berlin.de \
    --cc=cpufreq@www.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.