* [PATCH 7/8]cpufreq: acpi-cpufreq: Fix get of current frequency breakage
@ 2006-10-01 14:17 Venkatesh Pallipadi
0 siblings, 0 replies; 2+ messages in thread
From: Venkatesh Pallipadi @ 2006-10-01 14:17 UTC (permalink / raw)
To: Dave Jones; +Cc: alexey.y.starikovskiy, cpufreq, Dominik Brodowski
Recent speedstep-centrino unification onto acpi-cpufreq patchset broke
cpuinfo_cur_freq interface in /sys/../cpuinfo/, when MSR was used for
transitions. Attached patch fixes that breakage.
Applies over the patchset with subject
Unify ACPI bits on speedstep-centrino and acpi-cpufreq
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Index: linux-2.6.18/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
===================================================================
--- linux-2.6.18.orig/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ linux-2.6.18/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -102,10 +102,13 @@ static unsigned extract_io(u32 value, st
static unsigned extract_msr(u32 msr, struct acpi_cpufreq_data *data)
{
int i;
+ struct acpi_processor_performance *perf;
msr &= INTEL_MSR_RANGE;
+ perf = data->acpi_data;
+
for (i = 0; data->freq_table[i].frequency != CPUFREQ_TABLE_END; i++) {
- if (msr == data->freq_table[i].index)
+ if (msr == perf->states[data->freq_table[i].index].status)
return data->freq_table[i].frequency;
}
return data->freq_table[0].frequency;
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 7/8]cpufreq:acpi-cpufreq: Fix get of current frequency breakage
@ 2006-10-03 19:37 Venkatesh Pallipadi
0 siblings, 0 replies; 2+ messages in thread
From: Venkatesh Pallipadi @ 2006-10-03 19:37 UTC (permalink / raw)
To: Dave Jones; +Cc: cpufreq
Recent speedstep-centrino unification onto acpi-cpufreq patchset broke
cpuinfo_cur_freq interface in /sys/../cpuinfo/, when MSR was used for
transitions. Attached patch fixes that breakage.
Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Index: linux-2.6.18/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
===================================================================
--- linux-2.6.18.orig/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ linux-2.6.18/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -101,10 +101,13 @@ static unsigned extract_io(u32 value, st
static unsigned extract_msr(u32 msr, struct acpi_cpufreq_data *data)
{
int i;
+ struct acpi_processor_performance *perf;
msr &= INTEL_MSR_RANGE;
+ perf = data->acpi_data;
+
for (i = 0; data->freq_table[i].frequency != CPUFREQ_TABLE_END; i++) {
- if (msr == data->freq_table[i].index)
+ if (msr == perf->states[data->freq_table[i].index].status)
return data->freq_table[i].frequency;
}
return data->freq_table[0].frequency;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-03 19:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-03 19:37 [PATCH 7/8]cpufreq:acpi-cpufreq: Fix get of current frequency breakage Venkatesh Pallipadi
-- strict thread matches above, loose matches on Subject: below --
2006-10-01 14:17 [PATCH 7/8]cpufreq: acpi-cpufreq: " Venkatesh Pallipadi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox