mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Guido Guenther <agx@sigxcpu.org>
To: Benjamin Herrenschmidt <benh.kernel.crashing.org@bogon.ms20.nix>
Cc: linux-kernel@vger.kernel.org
Subject: [Patch]: fix cpufrequency scaling on ppc
Date: Tue, 28 Sep 2004 14:40:57 +0200	[thread overview]
Message-ID: <20040928124057.GA3871@bogon.ms20.nix> (raw)

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,
 };
 
 

             reply	other threads:[~2004-09-28 12:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-28 12:40 Guido Guenther [this message]
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

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=20040928124057.GA3871@bogon.ms20.nix \
    --to=agx@sigxcpu.org \
    --cc=benh.kernel.crashing.org@bogon.ms20.nix \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®