From: Andi Kleen Date: Mon, 12 Sep 2005 16:49:25 +0000 (+0200) Subject: [PATCH] x86-64: reset apicid<->node tables when SRAT cannot be parsed X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2bce2b54ae91aac76b62e8110b627ba5e5cbbffd;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [PATCH] x86-64: reset apicid<->node tables when SRAT cannot be parsed Signed-off-by: Linus Torvalds --- diff --git a/arch/x86_64/mm/srat.c b/arch/x86_64/mm/srat.c index d66b814e5033..07bf13fbcf84 100644 --- a/arch/x86_64/mm/srat.c +++ b/arch/x86_64/mm/srat.c @@ -81,8 +81,11 @@ static __init void cutoff_node(int i, unsigned long start, unsigned long end) static __init void bad_srat(void) { + int i; printk(KERN_ERR "SRAT: SRAT not used.\n"); acpi_numa = -1; + for (i = 0; i < MAX_LOCAL_APIC; i++) + apicid_to_node[i] = NUMA_NO_NODE; } static __init inline int srat_disabled(void)