/* This routine can only be used during init, since smp_boot_data is an init data structure. We have to use smp_boot_data.cpu_phys_id to find the physical id of the processor because the normal cpu_physical_id() relies on data structures that may not be initialized yet.  */
static int __init pxm_to_nasid(int pxm)
/* This routine can only be used during init, since smp_boot_data is an init data structure. We have to use smp_boot_data.cpu_phys_id to find the physical id of the processor because the normal cpu_physical_id() relies on data structures that may not be initialized yet.  */
static int __init pxm_to_nasid(int pxm)
{
	int i;
	int nid;
	nid = pxm_to_node(pxm);
	for (i = 0; i < num_node_memblks; i++) {
		if (node_memblk[i].nid == nid) {
			return NASID_GET(node_memblk[i].start_paddr);
		}
	}
	return -1;
}