ACPI: handle invalid ACPI SLIT table
authorFenghua Yu <fenghua.yu@intel.com>
Mon, 9 Jun 2008 23:48:18 +0000 (16:48 -0700)
committerLen Brown <len.brown@intel.com>
Wed, 11 Jun 2008 23:13:46 +0000 (19:13 -0400)
commit39b8931b5cad9a7cbcd2394a40a088311e783a82
tree4db8369a3d5cc54a61942f38de9eb392e7e5bc60
parent36d872a370d3d10e5a7faa9dcacce744260fb13b
ACPI: handle invalid ACPI SLIT table

This is a SLIT sanity checking patch.  It moves slit_valid() function to
generic ACPI code and does sanity checking for both x86 and ia64.  It sets up
node_distance with LOCAL_DISTANCE and REMOTE_DISTANCE when hitting invalid
SLIT table on ia64.  It also cleans up unused variable localities in
acpi_parse_slit() on x86.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
arch/ia64/kernel/acpi.c
arch/x86/mm/srat_64.c
drivers/acpi/numa.c