lkml.org 
[lkml]   [2010]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2/7, v9] NUMA Hotplug Emulator: Add numa=possible option
On Fri, 10 Dec 2010 15:31:21 +0800
shaohui.zheng@intel.com wrote:

> @@ -646,6 +647,15 @@ void __init initmem_init(unsigned long start_pfn, unsigned long last_pfn,
> numa_set_node(i, 0);
> memblock_x86_register_active_regions(0, start_pfn, last_pfn);
> setup_node_bootmem(0, start_pfn << PAGE_SHIFT, last_pfn << PAGE_SHIFT);
> +out: __maybe_unused

hm, I didn't know you could do that with labels.

Does it work?

> + for (i = 0; i < numa_possible_nodes; i++) {
> + int nid;
> +
> + nid = first_unset_node(node_possible_map);
> + if (nid == MAX_NUMNODES)
> + break;
> + node_set(nid, node_possible_map);
> + }
> }
>
> unsigned long __init numa_free_all_bootmem(void)


\
 
 \ /
  Last update: 2010-12-23 01:33    [W:0.112 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site