/* Build cpu to node mapping and initialize the per node cpu masks using info from the node_cpuid array handed to us by ACPI.  */
void __init build_cpu_to_node_map(void)
/* Build cpu to node mapping and initialize the per node cpu masks using info from the node_cpuid array handed to us by ACPI.  */
void __init build_cpu_to_node_map(void)
{
	int cpu, i, node;
	for(node=0; node < MAX_NUMNODES; node++)
		cpus_clear(node_to_cpu_mask[node]);
	for_each_possible_early_cpu(cpu) {
		node = -1;
		for (i = 0; i < NR_CPUS; ++i)
			if (cpu_physical_id(cpu) == node_cpuid[i].phys_id) {
				node = node_cpuid[i].nid;
				break;
			}
		map_cpu_to_node(cpu, node);
	}
}