Lines Matching refs:nid
67 int nid = cpu_to_node(cpu);
69 if (nid == NUMA_NO_NODE)
73 cpumask_clear_cpu(cpu, node_to_cpumask_map[nid]);
75 cpumask_set_cpu(cpu, node_to_cpumask_map[nid]);
127 void __init early_map_cpu_to_node(unsigned int cpu, int nid)
130 if (nid < 0 || nid >= MAX_NUMNODES || numa_off)
131 nid = 0;
133 cpu_to_node_map[cpu] = nid;
141 set_cpu_numa_node(cpu, nid);
161 int nid = early_cpu_to_node(cpu);
164 __pa(MAX_DMA_ADDRESS), MEMBLOCK_ALLOC_ACCESSIBLE, nid);
197 * @nid: NUMA node ID of the new memblk
204 int __init numa_add_memblk(int nid, u64 start, u64 end)
208 ret = memblock_set_node(start, (end - start), &memblock.memory, nid);
211 start, (end - 1), nid);
215 node_set(nid, numa_nodes_parsed);
222 static void __init setup_node_data(int nid, u64 start_pfn, u64 end_pfn)
230 pr_info("Initmem setup node %d [<memory-less node>]\n", nid);
232 nd_pa = memblock_phys_alloc_try_nid(nd_size, SMP_CACHE_BYTES, nid);
235 nd_size, nid);
243 if (tnid != nid)
244 pr_info("NODE_DATA(%d) on node %d\n", nid, tnid);
246 node_data[nid] = nd;
247 memset(NODE_DATA(nid), 0, sizeof(pg_data_t));
248 NODE_DATA(nid)->node_id = nid;
249 NODE_DATA(nid)->node_start_pfn = start_pfn;
250 NODE_DATA(nid)->node_spanned_pages = end_pfn - start_pfn;
353 int nid;
356 /* Check that valid nid is set to memblks */
369 for_each_node_mask(nid, numa_nodes_parsed) {
372 get_pfn_range_for_nid(nid, &start_pfn, &end_pfn);
373 setup_node_data(nid, start_pfn, end_pfn);
374 node_set_online(nid);