All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE
@ 2007-01-30 15:53 Joachim Deguara
  0 siblings, 0 replies; 2+ messages in thread
From: Joachim Deguara @ 2007-01-30 15:53 UTC (permalink / raw)
  To: cpufreq

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);

^ permalink raw reply	[flat|nested] 2+ messages in thread
* re: [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE
@ 2007-01-30 16:54 Langsdorf, Mark
  0 siblings, 0 replies; 2+ messages in thread
From: Langsdorf, Mark @ 2007-01-30 16:54 UTC (permalink / raw)
  To: cpufreq

Acked-by: Mark Langsdorf <mark.langsdorf@amd.com>

Subject: [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE

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);



_______________________________________________
Cpufreq mailing list
Cpufreq@lists.linux.org.uk
http://lists.linux.org.uk/mailman/listinfo/cpufreq

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-30 16:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-30 15:53 [PATCH] fix cpuinfo_cur_freq for CPU_HW_PSTATE Joachim Deguara
  -- strict thread matches above, loose matches on Subject: below --
2007-01-30 16:54 Langsdorf, Mark

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.