From: Christiaan Welvaart <cjw@daneel.dyndns.org>
To: linuxppc-dev list <linuxppc-dev@lists.linuxppc.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
John Steele Scott <toojays@toojays.net>
Subject: Re: [PATCH] cpufreq support for 7447A on 2004 iBooks
Date: Wed, 30 Jun 2004 15:14:31 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.58.0406301456050.17875@zem.cjw.nep> (raw)
In-Reply-To: <200406202044.01554.toojays@toojays.net>
On Sun, 20 Jun 2004, John Steele Scott wrote:
> Okay, here it is:
> http://www.toojays.net/~toojays/misc/7447a_cpufreq_20040619a.patch
Tested on my 1067MHz iBook that apparently doesn't need the voltage
tweak - it still works.
The patch breaks (32-bit) kernel builds for G5s etc (non-CONFIG_6xx).
Patch below fixes that.
Christiaan
--- linux-2.6.7/arch/ppc/platforms/pmac_cpufreq.c.bak 2004-06-25 22:35:25.094647214 +0200
+++ linux-2.6.7/arch/ppc/platforms/pmac_cpufreq.c 2004-06-26 04:13:19.182914571 +0200
@@ -128,6 +128,7 @@
/* Switch CPU speed using DFS */
static int __pmac dfs_set_cpu_speed(int low_speed)
{
+#ifdef CONFIG_6xx
if (low_speed == 0) {
/* ramping up, set voltage first */
pmac_call_feature(PMAC_FTR_WRITE_GPIO, NULL, voltage_gpio, 0x05);
@@ -150,6 +151,7 @@
/* ramping up, disable aack delay last */
pmac_call_feature(PMAC_FTR_AACK_DELAY_ENABLE, NULL, 0, 0);
}
+#endif
return 0;
}
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2004-06-30 13:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-05 9:15 [PATCH] cpufreq support for 7447A on 2004 iBooks John Steele Scott
2004-06-05 12:53 ` John Steele Scott
2004-06-05 16:21 ` Benjamin Herrenschmidt
2004-06-10 11:34 ` John Steele Scott
2004-06-10 16:12 ` Benjamin Herrenschmidt
2004-06-16 2:34 ` John Steele Scott
2004-06-18 12:02 ` Sebastian Henschel
2004-06-18 15:30 ` Benjamin Herrenschmidt
2004-06-19 3:19 ` John Steele Scott
2004-06-19 4:39 ` Benjamin Herrenschmidt
2004-06-20 11:13 ` John Steele Scott
2004-06-20 16:34 ` Benjamin Herrenschmidt
2004-06-30 13:14 ` Christiaan Welvaart [this message]
2004-06-10 8:50 ` Colin LEROY
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=Pine.LNX.4.58.0406301456050.17875@zem.cjw.nep \
--to=cjw@daneel.dyndns.org \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@lists.linuxppc.org \
--cc=toojays@toojays.net \
/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;
as well as URLs for NNTP newsgroup(s).