• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/x86/kernel/

Lines Matching defs:cpu

21 #include <asm/cpu.h>
69 unsigned int cpu;
71 for_each_possible_cpu(cpu) {
72 int node = early_cpu_to_node(cpu);
87 * @cpu: cpu to allocate for
91 * Allocate @size bytes aligned at @align for cpu @cpu. This wrapper
98 static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size,
103 int node = early_cpu_to_node(cpu);
108 pr_info("cpu %d has no node %d or node-local memory\n",
109 cpu, node);
110 pr_debug("per cpu data for cpu%d %lu bytes at %016lx\n",
111 cpu, size, __pa(ptr));
115 pr_debug("per cpu data for cpu%d %lu bytes on node%d at %016lx\n",
116 cpu, size, node, __pa(ptr));
127 static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, size_t align)
129 return pcpu_alloc_bootmem(cpu, size, align);
160 static inline void setup_percpu_segment(int cpu)
165 pack_descriptor(&gdt, per_cpu_offset(cpu), 0xFFFFF,
168 write_gdt_entry(get_cpu_gdt_table(cpu),
175 unsigned int cpu;
215 for_each_possible_cpu(cpu) {
216 per_cpu_offset(cpu) = delta + pcpu_unit_offsets[cpu];
217 per_cpu(this_cpu_off, cpu) = per_cpu_offset(cpu);
218 per_cpu(cpu_number, cpu) = cpu;
219 setup_percpu_segment(cpu);
220 setup_stack_canary_segment(cpu);
223 * initial arrays to the per cpu data areas. These
229 per_cpu(x86_cpu_to_apicid, cpu) =
230 early_per_cpu_map(x86_cpu_to_apicid, cpu);
231 per_cpu(x86_bios_cpu_apicid, cpu) =
232 early_per_cpu_map(x86_bios_cpu_apicid, cpu);
235 per_cpu(irq_stack_ptr, cpu) =
236 per_cpu(irq_stack_union.irq_stack, cpu) +
239 per_cpu(x86_cpu_to_node_map, cpu) =
240 early_per_cpu_map(x86_cpu_to_node_map, cpu);
242 * Ensure that the boot cpu numa_node is correct when the boot
243 * cpu is on a node that doesn't have memory installed.
247 * So set them all (boot cpu and all APs).
249 set_cpu_numa_node(cpu, early_cpu_to_node(cpu));
256 if (cpu == boot_cpu_id)
257 switch_to_new_gdt(cpu);
272 /* Setup cpu initialized, callin, callout masks */