* [Patch]: fix cpufrequency scaling on ppc
@ 2004-09-28 12:40 Guido Guenther
2004-09-29 12:41 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: Guido Guenther @ 2004-09-28 12:40 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linux-kernel
Hi,
attached patch against 2.6.9-rc2 fixes cpufrequency scaling after resume
on pmacs. Please apply.
-- Guido
Signed-off-by: Guido Guenther <agx@sigxcpu.org>
--- linux-2.6.9-rc2.orig/arch/ppc/platforms/pmac_cpufreq.c 2004-09-15 09:22:54.000000000 +0200
+++ linux-2.6.9-rc2/arch/ppc/platforms/pmac_cpufreq.c 2004-09-28 14:36:20.265785384 +0200
@@ -366,12 +367,26 @@
return 0x50 + (*reg);
}
+static unsigned int __pmac pmac_cpufreq_get(unsigned int cpu)
+{
+ if (cpu)
+ return -ENODEV;
+ return cur_freq;
+}
+
+static struct freq_attr* pmac_cpufreq_attr[] = {
+ &cpufreq_freq_attr_scaling_available_freqs,
+ NULL,
+};
+
static struct cpufreq_driver pmac_cpufreq_driver = {
.verify = pmac_cpufreq_verify,
.target = pmac_cpufreq_target,
.init = pmac_cpufreq_cpu_init,
+ .get = pmac_cpufreq_get,
.name = "powermac",
.owner = THIS_MODULE,
+ .attr = pmac_cpufreq_attr,
};
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [Patch]: fix cpufrequency scaling on ppc
2004-09-28 12:40 [Patch]: fix cpufrequency scaling on ppc Guido Guenther
@ 2004-09-29 12:41 ` Benjamin Herrenschmidt
2004-09-30 7:39 ` Guido Guenther
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2004-09-29 12:41 UTC (permalink / raw)
To: Guido Guenther; +Cc: Benjamin Herrenschmidt, Linux Kernel list
On Tue, 2004-09-28 at 22:40, Guido Guenther wrote:
> Hi,
> attached patch against 2.6.9-rc2 fixes cpufrequency scaling after resume
> on pmacs. Please apply.
It's actually still not clear wether we resume at the same speed we
had when going to sleep .. especially in the PMU cpufreq case...
I didn't have time to experiment with this yet tho.
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch]: fix cpufrequency scaling on ppc
2004-09-29 12:41 ` Benjamin Herrenschmidt
@ 2004-09-30 7:39 ` Guido Guenther
2004-09-30 7:48 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 5+ messages in thread
From: Guido Guenther @ 2004-09-30 7:39 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Linux Kernel list
On Wed, Sep 29, 2004 at 10:41:14PM +1000, Benjamin Herrenschmidt wrote:
> On Tue, 2004-09-28 at 22:40, Guido Guenther wrote:
> > Hi,
> > attached patch against 2.6.9-rc2 fixes cpufrequency scaling after resume
> > on pmacs. Please apply.
>
> It's actually still not clear wether we resume at the same speed we
> had when going to sleep .. especially in the PMU cpufreq case...
Thought about this too, especially since my pbook comes up with the
lower frequency after pmdisk resume. Can you think of a simple way to
read the current frequency that works an all currently supported models?
Cheers,
-- Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch]: fix cpufrequency scaling on ppc
2004-09-30 7:39 ` Guido Guenther
@ 2004-09-30 7:48 ` Benjamin Herrenschmidt
2004-09-30 8:43 ` Guido Guenther
0 siblings, 1 reply; 5+ messages in thread
From: Benjamin Herrenschmidt @ 2004-09-30 7:48 UTC (permalink / raw)
To: Guido Guenther; +Cc: Linux Kernel list
On Thu, 2004-09-30 at 17:39, Guido Guenther wrote:
> On Wed, Sep 29, 2004 at 10:41:14PM +1000, Benjamin Herrenschmidt wrote:
> > On Tue, 2004-09-28 at 22:40, Guido Guenther wrote:
> > > Hi,
> > > attached patch against 2.6.9-rc2 fixes cpufrequency scaling after resume
> > > on pmacs. Please apply.
> >
> > It's actually still not clear wether we resume at the same speed we
> > had when going to sleep .. especially in the PMU cpufreq case...
> Thought about this too, especially since my pbook comes up with the
> lower frequency after pmdisk resume. Can you think of a simple way to
> read the current frequency that works an all currently supported models?
Nope, unfortunately...
Ben.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Patch]: fix cpufrequency scaling on ppc
2004-09-30 7:48 ` Benjamin Herrenschmidt
@ 2004-09-30 8:43 ` Guido Guenther
0 siblings, 0 replies; 5+ messages in thread
From: Guido Guenther @ 2004-09-30 8:43 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Linux Kernel list
On Thu, Sep 30, 2004 at 05:48:41PM +1000, Benjamin Herrenschmidt wrote:
> On Thu, 2004-09-30 at 17:39, Guido Guenther wrote:
> > On Wed, Sep 29, 2004 at 10:41:14PM +1000, Benjamin Herrenschmidt wrote:
> > > On Tue, 2004-09-28 at 22:40, Guido Guenther wrote:
> > > > Hi,
> > > > attached patch against 2.6.9-rc2 fixes cpufrequency scaling after resume
> > > > on pmacs. Please apply.
> > >
> > > It's actually still not clear wether we resume at the same speed we
> > > had when going to sleep .. especially in the PMU cpufreq case...
> > Thought about this too, especially since my pbook comes up with the
> > lower frequency after pmdisk resume. Can you think of a simple way to
> > read the current frequency that works an all currently supported models?
>
> Nope, unfortunately...
Should the patch be applied anyway, it still way better than the current
situation.
Cheers,
-- Guido
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-09-30 8:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-28 12:40 [Patch]: fix cpufrequency scaling on ppc Guido Guenther
2004-09-29 12:41 ` Benjamin Herrenschmidt
2004-09-30 7:39 ` Guido Guenther
2004-09-30 7:48 ` Benjamin Herrenschmidt
2004-09-30 8:43 ` Guido Guenther
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.