Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234851
b: refs/heads/master
c: a9aec56
h: refs/heads/master
i:
  234849: 71c5645
  234847: 5ce8d3b
v: v3
  • Loading branch information
Tejun Heo committed Feb 16, 2011
1 parent d906abb commit bee809c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 940fed2e79a15cf0d006c860d7811adbe5c19882
refs/heads/master: a9aec56afac238e4ed3980bd10b22121b83866dd
1 change: 1 addition & 0 deletions trunk/arch/x86/include/asm/acpi.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ struct bootnode;
extern int acpi_numa;
extern void acpi_get_nodes(struct bootnode *physnodes, unsigned long start,
unsigned long end);
extern int x86_acpi_numa_init(void);
extern int acpi_scan_nodes(void);
#define NR_NODE_MEMBLKS (MAX_NUMNODES*2)

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ void __init setup_arch(char **cmdline_p)
/*
* Parse SRAT to discover nodes.
*/
acpi = !acpi_numa_init();
acpi = !x86_acpi_numa_init();
#endif

#ifdef CONFIG_AMD_NUMA
Expand Down
10 changes: 10 additions & 0 deletions trunk/arch/x86/mm/srat_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,16 @@ void __init acpi_get_nodes(struct bootnode *physnodes, unsigned long start,
}
#endif /* CONFIG_NUMA_EMU */

int __init x86_acpi_numa_init(void)
{
int ret;

ret = acpi_numa_init();
if (ret < 0)
return ret;
return srat_disabled() ? -EINVAL : 0;
}

/* Use the information discovered above to actually set up the nodes. */
int __init acpi_scan_nodes(void)
{
Expand Down

0 comments on commit bee809c

Please sign in to comment.