diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/acpi/numa.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index 3b5c3189fd99..e56f3be7b07d 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -45,6 +45,8 @@ static int pxm_to_node_map[MAX_PXM_DOMAINS] | |||
45 | static int node_to_pxm_map[MAX_NUMNODES] | 45 | static int node_to_pxm_map[MAX_NUMNODES] |
46 | = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL }; | 46 | = { [0 ... MAX_NUMNODES - 1] = PXM_INVAL }; |
47 | 47 | ||
48 | unsigned char acpi_srat_revision __initdata; | ||
49 | |||
48 | int pxm_to_node(int pxm) | 50 | int pxm_to_node(int pxm) |
49 | { | 51 | { |
50 | if (pxm < 0) | 52 | if (pxm < 0) |
@@ -255,9 +257,13 @@ acpi_parse_memory_affinity(struct acpi_subtable_header * header, | |||
255 | 257 | ||
256 | static int __init acpi_parse_srat(struct acpi_table_header *table) | 258 | static int __init acpi_parse_srat(struct acpi_table_header *table) |
257 | { | 259 | { |
260 | struct acpi_table_srat *srat; | ||
258 | if (!table) | 261 | if (!table) |
259 | return -EINVAL; | 262 | return -EINVAL; |
260 | 263 | ||
264 | srat = (struct acpi_table_srat *)table; | ||
265 | acpi_srat_revision = srat->header.revision; | ||
266 | |||
261 | /* Real work done in acpi_table_parse_srat below. */ | 267 | /* Real work done in acpi_table_parse_srat below. */ |
262 | 268 | ||
263 | return 0; | 269 | return 0; |