diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-03-21 04:50:30 +0100 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2013-04-02 18:39:48 +0200 |
commit | eee46b3de715c9a2a25ebf3c135b88a1d73d92c2 (patch) | |
tree | 8cf2c1ca678099569e4ac3de320596fd926a2798 /arch/ia64/mm | |
parent | Fix initialization of CMCI/CMCP interrupts (diff) | |
download | linux-eee46b3de715c9a2a25ebf3c135b88a1d73d92c2.tar.xz linux-eee46b3de715c9a2a25ebf3c135b88a1d73d92c2.zip |
Fix build error for numa_clear_node() under IA64
numa_clear_node() function is not implemented under IA64,
it will be called in unmap_cpu_on_node() in mm/memory_hotplug.c.
This cause build error under IA64, this patch adds numa_clear_node()
in IA64 to fix this problem.
[Added __cpuinit notation to numa_clear_node() to keep linker happy -Tony]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/mm')
-rw-r--r-- | arch/ia64/mm/numa.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/ia64/mm/numa.c b/arch/ia64/mm/numa.c index 3efea7d0a351..def782e31aac 100644 --- a/arch/ia64/mm/numa.c +++ b/arch/ia64/mm/numa.c @@ -73,6 +73,11 @@ int __meminit __early_pfn_to_nid(unsigned long pfn) return -1; } +void __cpuinit numa_clear_node(int cpu) +{ + unmap_cpu_from_node(cpu, NUMA_NO_NODE); +} + #ifdef CONFIG_MEMORY_HOTPLUG /* * SRAT information is stored in node_memblk[], then we can use SRAT |