From: "Joachim Deguara" <joachim.deguara@amd.com>
To: cpufreq@lists.linux.org.uk
Subject: [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE
Date: Tue, 30 Jan 2007 16:53:54 +0100 [thread overview]
Message-ID: <45BF6A12.9090801@amd.com> (raw)
This fixes the cpuinfo_cur_freq value by using the correct
find_khz_freq_from_fiddid() when the CPU uses hardware p-states.
Signed-Off-by: Joachim Deguara <joachim.deguara@amd.com>
--- arch/i386/kernel/cpu/cpufreq/powernow-k8.c.orig 2007-01-30
16:23:39.000000000 +0100
+++ arch/i386/kernel/cpu/cpufreq/powernow-k8.c 2007-01-30
16:26:44.000000000 +0100
@@ -1289,7 +1289,11 @@ static unsigned int powernowk8_get (unsi
if (query_current_values_with_pending_wait(data))
goto out;
- khz = find_khz_freq_from_fid(data->currfid);
+ if (cpu_family == CPU_HW_PSTATE)
+ khz = find_khz_freq_from_fiddid(data->currfid, data->currdid);
+ else
+ khz = find_khz_freq_from_fid(data->currfid);
+
out:
set_cpus_allowed(current, oldmask);
next reply other threads:[~2007-01-30 15:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-30 15:53 Joachim Deguara [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-01-30 16:54 [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE Langsdorf, Mark
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=45BF6A12.9090801@amd.com \
--to=joachim.deguara@amd.com \
--cc=cpufreq@lists.linux.org.uk \
/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 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.