[PATCH v6 10/14] acpi, numa: remove unneeded acpi_numa=1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Will Deacon <will.deacon@xxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Mark Rutland <mark.rutland@xxxxxxx>, Catalin Marinas <catalin.marinas@xxxxxxx>, Tony Luck <tony.luck@xxxxxxxxx>, Fenghua Yu <fenghua.yu@xxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, "H. Peter Anvin" <hpa@xxxxxxxxx>, x86@xxxxxxxxxx, "Rafael J. Wysocki" <rjw@xxxxxxxxxxxxx>, Len Brown <lenb@xxxxxxxxxx>, Rob Herring <robh+dt@xxxxxxxxxx>, Frank Rowand <frowand.list@xxxxxxxxx>, Grant Likely <grant.likely@xxxxxxxxxx>, Robert Moore <robert.moore@xxxxxxxxx>, Lv Zheng <lv.zheng@xxxxxxxxx>, Hanjun Guo <hanjun.guo@xxxxxxxxxx>, Marc Zyngier <Marc.Zyngier@xxxxxxx>, linux-ia64@xxxxxxxxxxxxxxx, linux-acpi@xxxxxxxxxxxxxxx, devel@xxxxxxxxxx
- Subject: [PATCH v6 10/14] acpi, numa: remove unneeded acpi_numa=1
- From: David Daney <ddaney.cavm@xxxxxxxxx>
- Date: Wed, 27 Apr 2016 11:07:12 -0700
- Cc: linux-kernel@xxxxxxxxxxxxxxx, Robert Richter <rrichter@xxxxxxxxxx>, David Daney <david.daney@xxxxxxxxxx>
- In-reply-to: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com>
- List-id: <linux-ia64.vger.kernel.org>
- References: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com>
From: Hanjun Guo <hanjun.guo@xxxxxxxxxx>
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@xxxxxxxxxx>
Signed-off-by: Robert Richter <rrichter@xxxxxxxxxx>
Signed-off-by: David Daney <david.daney@xxxxxxxxxx>
---
arch/x86/mm/srat.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/mm/srat.c b/arch/x86/mm/srat.c
index 4217071f..30460f5 100644
--- a/arch/x86/mm/srat.c
+++ b/arch/x86/mm/srat.c
@@ -59,7 +59,6 @@ acpi_numa_x2apic_affinity_init(struct acpi_srat_x2apic_cpu_affinity *pa)
}
set_apicid_to_node(apic_id, node);
node_set(node, numa_nodes_parsed);
- acpi_numa = 1;
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%04x -> Node %u\n",
pxm, apic_id, node);
}
@@ -101,7 +100,6 @@ acpi_numa_processor_affinity_init(struct acpi_srat_cpu_affinity *pa)
set_apicid_to_node(apic_id, node);
node_set(node, numa_nodes_parsed);
- acpi_numa = 1;
printk(KERN_INFO "SRAT: PXM %u -> APIC 0x%02x -> Node %u\n",
pxm, apic_id, node);
}
--
1.7.11.7
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Index of Archives]
[Linux Kernel]
[Sparc Linux]
[DCCP]
[Linux ARM]
[Yosemite News]
[Linux SCSI]
[Linux x86_64]
[Linux for Ham Radio]