diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /drivers/acpi/numa.c | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'drivers/acpi/numa.c')
-rw-r--r-- | drivers/acpi/numa.c | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index cb31298ca68..3b5c3189fd9 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c | |||
@@ -45,8 +45,6 @@ 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 | |||
50 | int pxm_to_node(int pxm) | 48 | int pxm_to_node(int pxm) |
51 | { | 49 | { |
52 | if (pxm < 0) | 50 | if (pxm < 0) |
@@ -237,8 +235,6 @@ acpi_parse_processor_affinity(struct acpi_subtable_header *header, | |||
237 | return 0; | 235 | return 0; |
238 | } | 236 | } |
239 | 237 | ||
240 | static int __initdata parsed_numa_memblks; | ||
241 | |||
242 | static int __init | 238 | static int __init |
243 | acpi_parse_memory_affinity(struct acpi_subtable_header * header, | 239 | acpi_parse_memory_affinity(struct acpi_subtable_header * header, |
244 | const unsigned long end) | 240 | const unsigned long end) |
@@ -252,20 +248,16 @@ acpi_parse_memory_affinity(struct acpi_subtable_header * header, | |||
252 | acpi_table_print_srat_entry(header); | 248 | acpi_table_print_srat_entry(header); |
253 | 249 | ||
254 | /* let architecture-dependent part to do it */ | 250 | /* let architecture-dependent part to do it */ |
255 | if (!acpi_numa_memory_affinity_init(memory_affinity)) | 251 | acpi_numa_memory_affinity_init(memory_affinity); |
256 | parsed_numa_memblks++; | 252 | |
257 | return 0; | 253 | return 0; |
258 | } | 254 | } |
259 | 255 | ||
260 | static int __init acpi_parse_srat(struct acpi_table_header *table) | 256 | static int __init acpi_parse_srat(struct acpi_table_header *table) |
261 | { | 257 | { |
262 | struct acpi_table_srat *srat; | ||
263 | if (!table) | 258 | if (!table) |
264 | return -EINVAL; | 259 | return -EINVAL; |
265 | 260 | ||
266 | srat = (struct acpi_table_srat *)table; | ||
267 | acpi_srat_revision = srat->header.revision; | ||
268 | |||
269 | /* Real work done in acpi_table_parse_srat below. */ | 261 | /* Real work done in acpi_table_parse_srat below. */ |
270 | 262 | ||
271 | return 0; | 263 | return 0; |
@@ -306,10 +298,8 @@ int __init acpi_numa_init(void) | |||
306 | 298 | ||
307 | acpi_numa_arch_fixup(); | 299 | acpi_numa_arch_fixup(); |
308 | 300 | ||
309 | if (cnt < 0) | 301 | if (cnt <= 0) |
310 | return cnt; | 302 | return cnt ?: -ENOENT; |
311 | else if (!parsed_numa_memblks) | ||
312 | return -ENOENT; | ||
313 | return 0; | 303 | return 0; |
314 | } | 304 | } |
315 | 305 | ||