|
@@ -199,8 +199,10 @@ static int __init
|
|
acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
|
|
acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
|
|
{
|
|
{
|
|
struct acpi_madt_local_x2apic *processor = NULL;
|
|
struct acpi_madt_local_x2apic *processor = NULL;
|
|
|
|
+#ifdef CONFIG_X86_X2APIC
|
|
int apic_id;
|
|
int apic_id;
|
|
u8 enabled;
|
|
u8 enabled;
|
|
|
|
+#endif
|
|
|
|
|
|
processor = (struct acpi_madt_local_x2apic *)header;
|
|
processor = (struct acpi_madt_local_x2apic *)header;
|
|
|
|
|
|
@@ -209,9 +211,10 @@ acpi_parse_x2apic(struct acpi_subtable_header *header, const unsigned long end)
|
|
|
|
|
|
acpi_table_print_madt_entry(header);
|
|
acpi_table_print_madt_entry(header);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_X86_X2APIC
|
|
apic_id = processor->local_apic_id;
|
|
apic_id = processor->local_apic_id;
|
|
enabled = processor->lapic_flags & ACPI_MADT_ENABLED;
|
|
enabled = processor->lapic_flags & ACPI_MADT_ENABLED;
|
|
-#ifdef CONFIG_X86_X2APIC
|
|
|
|
|
|
+
|
|
/*
|
|
/*
|
|
* We need to register disabled CPU as well to permit
|
|
* We need to register disabled CPU as well to permit
|
|
* counting disabled CPUs. This allows us to size
|
|
* counting disabled CPUs. This allows us to size
|