diff options
-rw-r--r-- | arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c index 6f846bee2103..32d04b083e38 100644 --- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c +++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c | |||
@@ -511,7 +511,6 @@ acpi_cpufreq_guess_freq(struct acpi_cpufreq_data *data, unsigned int cpu) | |||
511 | static int acpi_cpufreq_early_init(void) | 511 | static int acpi_cpufreq_early_init(void) |
512 | { | 512 | { |
513 | struct acpi_processor_performance *data; | 513 | struct acpi_processor_performance *data; |
514 | cpumask_t covered; | ||
515 | unsigned int i, j; | 514 | unsigned int i, j; |
516 | 515 | ||
517 | dprintk("acpi_cpufreq_early_init\n"); | 516 | dprintk("acpi_cpufreq_early_init\n"); |
@@ -520,14 +519,13 @@ static int acpi_cpufreq_early_init(void) | |||
520 | data = kzalloc(sizeof(struct acpi_processor_performance), | 519 | data = kzalloc(sizeof(struct acpi_processor_performance), |
521 | GFP_KERNEL); | 520 | GFP_KERNEL); |
522 | if (!data) { | 521 | if (!data) { |
523 | for_each_cpu_mask(j, covered) { | 522 | for_each_possible_cpu(j) { |
524 | kfree(acpi_perf_data[j]); | 523 | kfree(acpi_perf_data[j]); |
525 | acpi_perf_data[j] = NULL; | 524 | acpi_perf_data[j] = NULL; |
526 | } | 525 | } |
527 | return -ENOMEM; | 526 | return -ENOMEM; |
528 | } | 527 | } |
529 | acpi_perf_data[i] = data; | 528 | acpi_perf_data[i] = data; |
530 | cpu_set(i, covered); | ||
531 | } | 529 | } |
532 | 530 | ||
533 | /* Do initialization in ACPI core */ | 531 | /* Do initialization in ACPI core */ |