cpufreq Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dominik Brodowski <linux@dominikbrodowski.de>
To: Pavel Machek <pavel@ucw.cz>
Cc: paul.devriendt@amd.com, Cpufreq mailing list <cpufreq@www.linux.org.uk>
Subject: Re: powernow-k8 updates
Date: Fri, 26 Mar 2004 14:02:54 +0100	[thread overview]
Message-ID: <20040326130254.GA9284@dominikbrodowski.de> (raw)
In-Reply-To: <20040326123216.GB321@elf.ucw.cz>


[-- Attachment #1.1: Type: text/plain, Size: 1736 bytes --]

On Fri, Mar 26, 2004 at 01:32:16PM +0100, Pavel Machek wrote:
> On Pá 26-03-04 13:27:42, Dominik Brodowski wrote:
> > On Fri, Mar 26, 2004 at 01:19:15PM +0100, Pavel Machek wrote:
> > > Hi!
> > > 
> > > > Few updates, enable ACPI, add common printing function, fix typo, move
> > > > "pst out of sequence" where it belongs, fix formating in
> > > > powernow-k8.h. I'm not quite sure what this is against, so this is
> > > > "eyes only".
> > > 
> > > Its strange, ACPI code does not seem to mention batps at all, still
> > > cpu goes to 800MHz when I unplug the cord... Perhaps it should at
> > > least say something into the syslog?
> > 
> > ... again our differences about verbosity... :-)
> 
> Actually, I do not understand how it works. How does cpufreq know how
> many states are there on battery? It does something, but I'd like to
> understand it...

The BIOS notifies the acpi processor module of a platform limit change
(acpi_processor_notify). The acpi processor module then reads out the _PDC
value of the ACPI table, which contains the maximum current supported
P-State [P0 is highest freq, Px is lowest]. 

Then the cpufreq_update_policy() function is called: the last cpufreq policy
set is send to the cpufreq notifiers, among them is
acpi_processor_ppc_notifier(), which limits the max allowed frequency, see

        cpufreq_verify_within_limits(policy, 0,
                pr->performance->states[ppc].core_frequency * 1000);

Then the policy (min/max frequency) is passed to a cpufreq governor [in most 
cases the userspace governor], which selects one speed between min and max 
frequency and tells the driver via ->target() of the frequency to set.

Hope this clarifies,

	Dominik

[-- Attachment #1.2: Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Cpufreq mailing list
Cpufreq@www.linux.org.uk
http://www.linux.org.uk/mailman/listinfo/cpufreq

  reply	other threads:[~2004-03-26 13:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-26 12:01 powernow-k8 updates Pavel Machek
2004-03-26 12:19 ` Pavel Machek
2004-03-26 12:27   ` Dominik Brodowski
2004-03-26 12:32     ` Pavel Machek
2004-03-26 13:02       ` Dominik Brodowski [this message]
2004-03-26 12:23 ` Dominik Brodowski
2004-03-26 12:33   ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2004-03-09 21:48 Pavel Machek
2004-03-10 11:09 ` Bruno Ducrot
2004-03-10 11:32   ` Pavel Machek
2004-03-10 13:48     ` Bruno Ducrot
2004-03-14 16:33       ` Dominik Brodowski
2004-03-14 16:32 ` 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=20040326130254.GA9284@dominikbrodowski.de \
    --to=linux@dominikbrodowski.de \
    --cc=cpufreq@www.linux.org.uk \
    --cc=paul.devriendt@amd.com \
    --cc=pavel@ucw.cz \
    /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