diff options
| author | Yasunori Goto <y-goto@jp.fujitsu.com> | 2006-06-27 05:53:31 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-27 20:32:36 -0400 |
| commit | 1e3590e2e4a38e8390fdac5bda23330bf2801838 (patch) | |
| tree | 528591e9db601af913756b11d37e451202584cd2 /include/linux | |
| parent | bc02af93dd2bbddce1b55e0a493f833a1b7cf140 (diff) | |
[PATCH] pgdat allocation for new node add (get node id by acpi)
This is to find node id from acpi's handle of memory_device in DSDT. _PXM for
the new node can be found by acpi_get_pxm() by using new memory's handle. So,
node id can be found by pxm_to_nid_map[].
This patch becomes simpler than v2 of node hot-add patch.
Because old add_memory() function doesn't have node id parameter.
So, kernel must find its handle by physical address via DSDT again.
But, v3 just give node id to add_memory() now.
Signed-off-by: Yasunori Goto <y-goto@jp.fujitsu.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: "Brown, Len" <len.brown@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 90d6df1551ed..88b5dfd8ee12 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h | |||
| @@ -528,12 +528,18 @@ static inline void acpi_set_cstate_limit(unsigned int new_limit) { return; } | |||
| 528 | 528 | ||
| 529 | #ifdef CONFIG_ACPI_NUMA | 529 | #ifdef CONFIG_ACPI_NUMA |
| 530 | int acpi_get_pxm(acpi_handle handle); | 530 | int acpi_get_pxm(acpi_handle handle); |
| 531 | int acpi_get_node(acpi_handle *handle); | ||
| 531 | #else | 532 | #else |
| 532 | static inline int acpi_get_pxm(acpi_handle handle) | 533 | static inline int acpi_get_pxm(acpi_handle handle) |
| 533 | { | 534 | { |
| 534 | return 0; | 535 | return 0; |
| 535 | } | 536 | } |
| 537 | static inline int acpi_get_node(acpi_handle *handle) | ||
| 538 | { | ||
| 539 | return 0; | ||
| 540 | } | ||
| 536 | #endif | 541 | #endif |
| 542 | extern int acpi_paddr_to_node(u64 start_addr, u64 size); | ||
| 537 | 543 | ||
| 538 | extern int pnpacpi_disabled; | 544 | extern int pnpacpi_disabled; |
| 539 | 545 | ||
