Skip to content

Commit fb1f418

Browse files
hanjun-guorafaeljw
authored andcommitted
ACPI / NUMA: remove unneeded acpi_numa=1
acpi_numa is default to 0, it's set to -1 when disable acpi numa or when a bad SRAT is parsed, and it's only consumed in srat_disabled() (compare it with 0) to continue parse the SRAT or not, so we don't need to set acpi_numa to 1 when we get a valid SRAT entry. Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Robert Richter <rrichter@cavium.com> Signed-off-by: David Daney <david.daney@cavium.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent e84025e commit fb1f418

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/mm/srat.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa)
5959
}
6060
set_apicid_to_node(apic_id, node);
6161
node_set(node, numa_nodes_parsed);
62-
acpi_numa = 1;
6362
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n",
6463
pxm, apic_id, node);
6564
}
@@ -101,7 +100,6 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
101100

102101
set_apicid_to_node(apic_id, node);
103102
node_set(node, numa_nodes_parsed);
104-
acpi_numa = 1;
105103
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n",
106104
pxm, apic_id, node);
107105
}

0 commit comments

Comments
 (0)