Skip to content

Commit

Permalink
[PATCH] x86-64: reset apicid<->node tables when SRAT cannot be parsed
Browse files Browse the repository at this point in the history
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2005
1 parent e58e0d0 commit 2bce2b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86_64/mm/srat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2bce2b5

Please sign in to comment.