Lines Matching refs:node

147  * @assigned_node : the node it belongs to or NUMA_NO_NODE if free ids from any
148 * node can be peek.
157 unsigned int cpu, node;
175 * can walk only online nodes because once a node became online
178 for_each_online_node(node) {
179 if (node == assigned_node)
182 node_recorded_ids_map[node]);
205 * Update cpu_present_mask and paca(s) for a new cpu node. The wrinkle
206 * here is that a cpu device node may represent multiple logical cpus
213 int len, nthreads, node, cpu, assigned_node;
229 * node id the added CPU belongs to.
231 node = of_node_to_nid(np);
232 if (node < 0 || !node_possible(node))
233 node = first_online_node;
235 BUG_ON(node == NUMA_NO_NODE);
236 assigned_node = node;
240 rc = find_cpu_id_range(nthreads, node, &cpu_mask);
243 * Try again, considering the free CPU ids from the other node.
245 node = NUMA_NO_NODE;
261 /* Record the newly used CPU ids for the associate node. */
266 * If node is set to NUMA_NO_NODE, CPU ids have be reused from
267 * another node, remove them from its mask.
269 if (node == NUMA_NO_NODE) {
271 pr_warn("Reusing free CPU ids %d-%d from another node\n",
273 for_each_online_node(node) {
274 if (node == assigned_node)
276 cpumask_andnot(node_recorded_ids_map[node],
277 node_recorded_ids_map[node],
289 * Update the present map for a cpu node which is going away, and set
534 * This device node is unattached but may have siblings; open-code the
558 pr_warn("Failed to find CPU root node \"/cpus\"\n");
598 pr_warn("Failed to attach node %pOFn, rc: %d, drc index: %x\n",
877 unsigned int node;
886 for_each_node(node) {
887 if (!alloc_cpumask_var_node(&node_recorded_ids_map[node],
888 GFP_KERNEL, node))
892 cpumask_copy(node_recorded_ids_map[node],
893 cpumask_of_node(node));