23 #include <linux/module.h>
24 #include <asm/processor.h>
37 cpu_to_node_map[
cpu] = 0;
41 oldnid = cpu_to_node_map[
cpu];
42 if (
cpu_isset(cpu, node_to_cpu_mask[oldnid])) {
49 cpu_to_node_map[
cpu] = nid;
50 cpu_set(cpu, node_to_cpu_mask[nid]);
57 WARN_ON(cpu_to_node_map[cpu] != nid);
58 cpu_to_node_map[
cpu] = 0;
76 for_each_possible_early_cpu(cpu) {