All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Dominik Brodowski <linux@dominikbrodowski.de>
Cc: cpufreq list <cpufreq@www.linux.org.uk>
Subject: Re: my dothan didn't work with cpufreq...
Date: Thu, 22 Jul 2004 10:34:25 -0700	[thread overview]
Message-ID: <1090517665.5267.9.camel@ixodes.goop.org> (raw)
In-Reply-To: <20040722093126.GA8418@dominikbrodowski.de>

On Thu, 2004-07-22 at 11:31 +0200, Dominik Brodowski wrote:
> > The hacky way to work it out would be to read
> > back the MSR and see what freq/voltage pair you have (which would only
> > work at max speed).
> ... but as many systems boot at a lower speed on battery power, I wouldn't
> want to do this.

Oh, no, I wasn't even considering suggesting it.  It's too nasty.

> However, as "enhanced SpeedStep" is going to be introduced on
> desktop CPUs, the problem will increase: the MSR will likely have a
> different encoding. See Venkatesh's patches for details. Also, I fear that
> as more CPUs support enhanced SpeedStep, the larger
> speedstep-centrino.{o,ko} will become.

The tables are not very big, and I was thinking about generating the
model names from a template rather than explicitly enumerating them all
as we do now.

But you're right, it looks like the simple table approach will be hard
or impossible to maintain.

> > +static const struct cpu_id cpu_ids[] = {
> > +	[CPU_BANIAS]	= { X86_VENDOR_INTEL,	6,  9, 5 },
> > +	[CPU_DOTHAN_A1]	= { X86_VENDOR_INTEL,	6, 13, 1 },
> > +	[CPU_DOTHAN_B0]	= { X86_VENDOR_INTEL,	6, 13, 6 },
> 
> Hm, I'm unsure whether this is proper CodingStyle... IIRC, much effort was
> spent in converting such { }s to include the respective "fields", like
> 	{ .x86_vendor = X86_VENDOR_INTEL, x86_family = 6 ... 
> and so on.

For a tiny little structure like this, which is defined immediately
above, this is fine. (CodingStyle makes no mention of structure
initialization.)

	J

  reply	other threads:[~2004-07-22 17:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-12 20:54 my dothan didn't work with cpufreq Damien Marchal
2004-07-13  9:49 ` Dominik Brodowski
2004-07-14 10:50   ` Damien Marchal
2004-07-16  8:19     ` Dominik Brodowski
2004-07-22  1:55   ` Jeremy Fitzhardinge
2004-07-22  6:04     ` Dominik Brodowski
2004-07-22  6:56       ` Jeremy Fitzhardinge
2004-07-22  9:31         ` Dominik Brodowski
2004-07-22 17:34           ` Jeremy Fitzhardinge [this message]
2004-07-23 19:38             ` Dominik Brodowski
2004-07-24  1:27               ` Jeremy Fitzhardinge
2004-07-24  7:06                 ` Dominik Brodowski
2004-08-02 19:26                 ` Dave Jones
2004-08-02 20:17                   ` Jeremy Fitzhardinge
2004-08-02 20:29                     ` Dave Jones

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=1090517665.5267.9.camel@ixodes.goop.org \
    --to=jeremy@goop.org \
    --cc=cpufreq@www.linux.org.uk \
    --cc=linux@dominikbrodowski.de \
    /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.