cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ducrot Bruno <ducrot@poupinou.org>
To: cpufreq@www.linux.org.uk
Subject: [RFC] cpufreq_get()
Date: Thu, 22 Jan 2004 20:06:49 +0100	[thread overview]
Message-ID: <20040122190649.GC25416@poupinou.org> (raw)

I'm planing to add the cpufreq_get() in struct cpufreq_driver,
but in a hardware fashion, eventually replacing the name by
something more appropriate.

Rational:
- almost all drivers that I know (powernow-k7, speedstep-*,
  longrun, and Im looking the PPC version) can implement it,
  the only one that I am aware for which it is not possible is
  the ACPI performance IO driver.

- by accessing driver->cpufreq_get() via a sysfs, we can verify if
  the 3 mains governors works.  Even for longrun, we
  can verify that the frequency is between min and max.

- we can compare /proc/cpuinfo with the result of cpufreq_get(),
  helping in debugging things.

- people may want to monitor the real frequency in their applet,
  so this help for having a more consistent API (google for 
  wmlongrun, for example).

- It is required for the ARM architecture anyway.

-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.

             reply	other threads:[~2004-01-22 19:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-22 19:06 Ducrot Bruno [this message]
2004-01-22 20:56 ` [RFC] cpufreq_get() Dominik Brodowski
2004-01-23 10:03   ` Ducrot Bruno
2004-01-24 20:34     ` Dominik Brodowski

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=20040122190649.GC25416@poupinou.org \
    --to=ducrot@poupinou.org \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox