All of lore.kernel.org
 help / color / mirror / Atom feed
* [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

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.