ia64/xen-unstable

changeset 18449:10c630645d13

xen/powernow: allow using lowest-power P-state

The MSR field used here indicates the highest numbered valid P-state,
not the first invalid one.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Sep 08 14:01:35 2008 +0100 (2008-09-08)
parents 06ab9cb9578e
children 1a7705924dbe
files xen/arch/x86/acpi/cpufreq/powernow.c
line diff
     1.1 --- a/xen/arch/x86/acpi/cpufreq/powernow.c	Mon Sep 08 14:01:17 2008 +0100
     1.2 +++ b/xen/arch/x86/acpi/cpufreq/powernow.c	Mon Sep 08 14:01:35 2008 +0100
     1.3 @@ -197,8 +197,8 @@ static int powernow_cpufreq_cpu_init(str
     1.4  
     1.5      data->max_freq = perf->states[0].core_frequency * 1000;
     1.6      /* table init */
     1.7 -    for (i=0; i<perf->state_count && i<max_hw_pstate; i++) {
     1.8 -        if (i>0 && perf->states[i].core_frequency >=
     1.9 +    for (i = 0; i < perf->state_count && i <= max_hw_pstate; i++) {
    1.10 +        if (i > 0 && perf->states[i].core_frequency >=
    1.11              data->freq_table[valid_states-1].frequency / 1000)
    1.12              continue;
    1.13