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

Lines Matching defs:cpu

33 #include <linux/cpu.h>
38 #include <asm/cpu.h>
68 static inline void set_cpu_sibling_map(int cpu)
72 cpu_set(cpu, cpu_sibling_setup_map);
76 if (cpu_data[cpu].core == cpu_data[i].core) {
77 cpu_set(i, cpu_sibling_map[cpu]);
78 cpu_set(cpu, cpu_sibling_map[i]);
82 cpu_set(cpu, cpu_sibling_map[cpu]);
101 unsigned int cpu;
118 cpu = smp_processor_id();
119 cpu_data[cpu].udelay_val = loops_per_jiffy;
121 notify_cpu_starting(cpu);
124 set_cpu_sibling_map(cpu);
126 cpu_set(cpu, cpu_callin_map);
171 current_thread_info()->cpu = 0;
179 /* preload SMP state for boot cpu */
188 * Called once for each "cpu_possible(cpu)". Needs to spin up the cpu
189 * and keep control until "cpu_online(cpu)" is set. Note: cpu is
198 int cpu;
206 c_idle->idle = fork_idle(c_idle->cpu);
210 int __cpuinit __cpu_up(unsigned int cpu)
219 if (!cpu_idle_thread[cpu]) {
225 .cpu = cpu,
232 idle = cpu_idle_thread[cpu] = c_idle.idle;
235 panic(KERN_ERR "Fork failed for CPU %d", cpu);
237 idle = cpu_idle_thread[cpu];
238 init_idle(idle, cpu);
241 mp_ops->boot_secondary(cpu, idle);
246 while (!cpu_isset(cpu, cpu_callin_map))
249 cpu_set(cpu, cpu_online_map);
304 * address spaces, a new context is obtained on the current cpu, and tlb
309 * mm might be active on another cpu (eg debuggers doing the flushes on
322 unsigned int cpu;
325 for_each_cpu_mask(cpu, mask)
326 if (cpu_context(cpu, mm))
327 cpu_context(cpu, mm) = 0;
362 unsigned int cpu;
365 for_each_cpu_mask(cpu, mask)
366 if (cpu_context(cpu, mm))
367 cpu_context(cpu, mm) = 0;
409 unsigned int cpu;
412 for_each_cpu_mask(cpu, mask)
413 if (cpu_context(cpu, vma->vm_mm))
414 cpu_context(cpu, vma->vm_mm) = 0;