Lines Matching refs:cpu

69 	unsigned int cpu;  in pcpu_need_numa()  local
71 for_each_possible_cpu(cpu) { in pcpu_need_numa()
72 int node = early_cpu_to_node(cpu); in pcpu_need_numa()
98 static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size, in pcpu_alloc_bootmem() argument
103 int node = early_cpu_to_node(cpu); in pcpu_alloc_bootmem()
109 cpu, node); in pcpu_alloc_bootmem()
111 cpu, size, __pa(ptr)); in pcpu_alloc_bootmem()
116 cpu, size, node, __pa(ptr)); in pcpu_alloc_bootmem()
127 static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, size_t align) in pcpu_fc_alloc() argument
129 return pcpu_alloc_bootmem(cpu, size, align); in pcpu_fc_alloc()
154 static inline void setup_percpu_segment(int cpu) in setup_percpu_segment() argument
159 pack_descriptor(&gdt, per_cpu_offset(cpu), 0xFFFFF, in setup_percpu_segment()
162 write_gdt_entry(get_cpu_gdt_table(cpu), in setup_percpu_segment()
169 unsigned int cpu; in setup_per_cpu_areas() local
221 for_each_possible_cpu(cpu) { in setup_per_cpu_areas()
222 per_cpu_offset(cpu) = delta + pcpu_unit_offsets[cpu]; in setup_per_cpu_areas()
223 per_cpu(this_cpu_off, cpu) = per_cpu_offset(cpu); in setup_per_cpu_areas()
224 per_cpu(cpu_number, cpu) = cpu; in setup_per_cpu_areas()
225 setup_percpu_segment(cpu); in setup_per_cpu_areas()
226 setup_stack_canary_segment(cpu); in setup_per_cpu_areas()
235 per_cpu(x86_cpu_to_apicid, cpu) = in setup_per_cpu_areas()
236 early_per_cpu_map(x86_cpu_to_apicid, cpu); in setup_per_cpu_areas()
237 per_cpu(x86_bios_cpu_apicid, cpu) = in setup_per_cpu_areas()
238 early_per_cpu_map(x86_bios_cpu_apicid, cpu); in setup_per_cpu_areas()
241 per_cpu(x86_cpu_to_logical_apicid, cpu) = in setup_per_cpu_areas()
242 early_per_cpu_map(x86_cpu_to_logical_apicid, cpu); in setup_per_cpu_areas()
245 per_cpu(irq_stack_ptr, cpu) = in setup_per_cpu_areas()
246 per_cpu(irq_stack_union.irq_stack, cpu) + in setup_per_cpu_areas()
250 per_cpu(x86_cpu_to_node_map, cpu) = in setup_per_cpu_areas()
251 early_per_cpu_map(x86_cpu_to_node_map, cpu); in setup_per_cpu_areas()
260 set_cpu_numa_node(cpu, early_cpu_to_node(cpu)); in setup_per_cpu_areas()
266 if (!cpu) in setup_per_cpu_areas()
267 switch_to_new_gdt(cpu); in setup_per_cpu_areas()