Skip to content

Commit

Permalink
Pull bugzilla-7880 into release branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Len Brown committed Jul 22, 2007
2 parents 2e85622 + 3cdf552 commit 22aadf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,8 +665,8 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
data->max_freq = perf->states[0].core_frequency * 1000;
/* table init */
for (i=0; i<perf->state_count; i++) {
if (i>0 && perf->states[i].core_frequency ==
perf->states[i-1].core_frequency)
if (i>0 && perf->states[i].core_frequency >=
data->freq_table[valid_states-1].frequency / 1000)
continue;

data->freq_table[valid_states].index = i;
Expand Down

0 comments on commit 22aadf8

Please sign in to comment.