• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/tile/kernel/

Lines Matching defs:cpu

24 #include <linux/cpu.h>
39 /* Called very early during startup to mark boot cpu as online */
42 int cpu = smp_processor_id();
43 set_cpu_online(cpu, 1);
44 set_cpu_present(cpu, 1);
55 * until they get an IPI from the boot cpu to come online.
60 int cpu, cpu_count;
63 current_thread_info()->cpu = boot_cpu;
71 pr_err("Couldn't set init affinity to boot cpu (%ld)\n", rc);
86 for (cpu = 0; cpu < NR_CPUS; ++cpu) {
89 if (cpu == boot_cpu)
92 if (!cpu_possible(cpu)) {
98 per_cpu(boot_sp, cpu) = 0;
99 per_cpu(boot_pc, cpu) = (unsigned long) smp_nap;
104 idle = fork_idle(cpu);
106 panic("failed fork for CPU %d", cpu);
110 per_cpu(boot_sp, cpu) = task_ksp0(idle);
111 per_cpu(boot_pc, cpu) = idle->thread.pc;
205 * lock helps us to not include this cpu in a currently in progress
213 /* Set up tile-specific state for this cpu. */
216 /* Set up tile-timer clock-event device on this cpu */
224 int __cpuinit __cpu_up(unsigned int cpu)
228 for (; !cpumask_test_cpu(cpu, &cpu_started); timeout++) {
230 pr_info("skipping unresponsive cpu%d\n", cpu);
238 per_cpu(cpu_state, cpu) = CPU_UP_PREPARE;
241 send_IPI_single(cpu, MSG_TAG_START_CPU);
242 while (!cpumask_test_cpu(cpu, cpu_online_mask))
254 int cpu, next, rc;
262 * Pin ourselves to a single cpu in the initial affinity set
265 * Use the last cpu just in case the whole chip has been
269 * on this cpu.
271 for (cpu = cpumask_first(&init_affinity);
272 (next = cpumask_next(cpu, &init_affinity)) < nr_cpu_ids;
273 cpu = next)
275 rc = sched_setaffinity(current->pid, cpumask_of(cpu));
277 pr_err("Couldn't set init affinity to cpu %d (%d)\n", cpu, rc);