lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20101222162717.289cfe01.akpm@linux-foundation.org>
Date:	Wed, 22 Dec 2010 16:27:17 -0800
From:	Andrew Morton <akpm@...ux-foundation.org>
To:	shaohui.zheng@...el.com
Cc:	linux-mm@...ck.org, linux-kernel@...r.kernel.org,
	haicheng.li@...ux.intel.com, lethal@...ux-sh.org,
	ak@...ux.intel.com, shaohui.zheng@...ux.intel.com,
	rientjes@...gle.com, dave@...ux.vnet.ibm.com, gregkh@...e.de,
	Haicheng Li <haicheng.li@...el.com>
Subject: Re: [2/7, v9] NUMA Hotplug Emulator: Add numa=possible option

On Fri, 10 Dec 2010 15:31:21 +0800
shaohui.zheng@...el.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)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ