ACPICA: Utilities: Fix local printf issue.
[firefly-linux-kernel-4.4.55.git] / drivers / acpi / acpi_processor.c
index b06f5f55ada952ced85de9c845dfb49cac421633..1c085742644faaef4f2da64bb1d7e857a7bd16f9 100644 (file)
@@ -268,7 +268,7 @@ static int acpi_processor_get_info(struct acpi_device *device)
        pr->apic_id = apic_id;
 
        cpu_index = acpi_map_cpuid(pr->apic_id, pr->acpi_id);
-       if (!cpu0_initialized) {
+       if (!cpu0_initialized && !acpi_lapic) {
                cpu0_initialized = 1;
                /* Handle UP system running SMP kernel, with no LAPIC in MADT */
                if ((cpu_index == -1) && (num_online_cpus() == 1))
@@ -405,7 +405,6 @@ static int acpi_processor_add(struct acpi_device *device,
                goto err;
 
        pr->dev = dev;
-       dev->offline = pr->flags.need_hotplug_init;
 
        /* Trigger the processor driver's .probe() if present. */
        if (device_attach(dev) >= 0)