diff options
Diffstat (limited to 'drivers/acpi/acpi_processor.c')
-rw-r--r-- | drivers/acpi/acpi_processor.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.c index f29e06efa479..357abdc1406a 100644 --- a/drivers/acpi/acpi_processor.c +++ b/drivers/acpi/acpi_processor.c | |||
@@ -219,6 +219,7 @@ static int acpi_processor_get_info(struct acpi_device *device) | |||
219 | int cpu_index, device_declaration = 0; | 219 | int cpu_index, device_declaration = 0; |
220 | acpi_status status = AE_OK; | 220 | acpi_status status = AE_OK; |
221 | static int cpu0_initialized; | 221 | static int cpu0_initialized; |
222 | unsigned long long value; | ||
222 | 223 | ||
223 | if (num_online_cpus() > 1) | 224 | if (num_online_cpus() > 1) |
224 | errata.smp = TRUE; | 225 | errata.smp = TRUE; |
@@ -258,7 +259,6 @@ static int acpi_processor_get_info(struct acpi_device *device) | |||
258 | * Declared with "Device" statement; match _UID. | 259 | * Declared with "Device" statement; match _UID. |
259 | * Note that we don't handle string _UIDs yet. | 260 | * Note that we don't handle string _UIDs yet. |
260 | */ | 261 | */ |
261 | unsigned long long value; | ||
262 | status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, | 262 | status = acpi_evaluate_integer(pr->handle, METHOD_NAME__UID, |
263 | NULL, &value); | 263 | NULL, &value); |
264 | if (ACPI_FAILURE(status)) { | 264 | if (ACPI_FAILURE(status)) { |
@@ -332,9 +332,9 @@ static int acpi_processor_get_info(struct acpi_device *device) | |||
332 | * ensure we get the right value in the "physical id" field | 332 | * ensure we get the right value in the "physical id" field |
333 | * of /proc/cpuinfo | 333 | * of /proc/cpuinfo |
334 | */ | 334 | */ |
335 | status = acpi_evaluate_object(pr->handle, "_SUN", NULL, &buffer); | 335 | status = acpi_evaluate_integer(pr->handle, "_SUN", NULL, &value); |
336 | if (ACPI_SUCCESS(status)) | 336 | if (ACPI_SUCCESS(status)) |
337 | arch_fix_phys_package_id(pr->id, object.integer.value); | 337 | arch_fix_phys_package_id(pr->id, value); |
338 | 338 | ||
339 | return 0; | 339 | return 0; |
340 | } | 340 | } |