From: Bruno Ducrot <ducrot@poupinou.org>
To: Dave Jones <davej@redhat.com>
Cc: cpufreq@www.linux.org.uk
Subject: Re: [PATCH][powernow-k7] correcting SGTC. Timer is based upon FSB.
Date: Wed, 14 Apr 2004 15:52:08 +0200 [thread overview]
Message-ID: <20040414135208.GG8953@poupinou.org> (raw)
In-Reply-To: <20040414133117.GI24970@redhat.com>
On Wed, Apr 14, 2004 at 02:31:17PM +0100, Dave Jones wrote:
>
> oops. just send me a patch backing out that bit..
>
I'm very sorry. I include the late_initcall btw. I think it's needed
for ACPI perflib.
--- linux-dj-cpufreq/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 2004/04/14 12:32:12 1.4
+++ linux-dj-cpufreq/arch/i386/kernel/cpu/cpufreq/powernow-k7.c 2004/04/14 13:54:31
@@ -481,13 +481,7 @@ static int powernow_decode_bios (int max
printk (KERN_INFO PFX "No PST tables match this cpuid (0x%x)\n", etuple);
printk (KERN_INFO PFX "This is indicative of a broken BIOS.\n");
- printk (KERN_INFO PFX "Trying ACPI perflib\n");
- ret = powernow_acpi_init();
- if (ret) {
- printk (KERN_INFO PFX "ACPI and legacy methods failed\n");
- printk (KERN_INFO PFX "See http://www.codemonkey.org.uk/projects/cpufreq/powernow-k7.shtml\n");
- }
- return ret;
+ return -EINVAL;
}
p++;
}
@@ -568,7 +562,12 @@ static int __init powernow_cpu_init (str
} else {
result = powernow_decode_bios(fidvidstatus.bits.MFID, fidvidstatus.bits.SVID);
if (result) {
+ printk (KERN_INFO PFX "Trying ACPI perflib\n");
result = powernow_acpi_init();
+ if (result) {
+ printk (KERN_INFO PFX "ACPI and legacy methods failed\n");
+ printk (KERN_INFO PFX "See http://www.codemonkey.org.uk/projects/cpufreq/powernow-k7.shtml\n");
+ }
} else {
/* SGTC use the bus clock as timer */
latency = fixup_sgtc();
@@ -638,6 +637,6 @@ MODULE_AUTHOR ("Dave Jones <davej@codemo
MODULE_DESCRIPTION ("Powernow driver for AMD K7 processors.");
MODULE_LICENSE ("GPL");
-module_init(powernow_init);
+late_initcall(powernow_init);
module_exit(powernow_exit);
--
Bruno Ducrot
-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.
next prev parent reply other threads:[~2004-04-14 13:52 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-14 10:36 [PATCH][powernow-k7] correcting SGTC. Timer is based upon FSB Bruno Ducrot
2004-04-14 10:41 ` Dave Jones
2004-04-14 12:18 ` Bruno Ducrot
2004-04-14 12:23 ` Dave Jones
2004-04-14 12:47 ` Bruno Ducrot
2004-04-14 13:28 ` Bruno Ducrot
2004-04-14 13:31 ` Dave Jones
2004-04-14 13:52 ` Bruno Ducrot [this message]
2004-04-14 17:44 ` Dave Jones
2004-04-14 18:48 ` Dominik Brodowski
2004-04-14 18:58 ` Bruno Ducrot
2004-04-14 19:19 ` Dominik Brodowski
2004-04-15 8:45 ` Bruno Ducrot
2004-04-14 19:02 ` 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=20040414135208.GG8953@poupinou.org \
--to=ducrot@poupinou.org \
--cc=cpufreq@www.linux.org.uk \
--cc=davej@redhat.com \
/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