Lines Matching refs:cpu
424 int timeout, cpu; in do_boot_cpu() local
426 cpu = ++cpucount; in do_boot_cpu()
432 panic("failed fork for CPU %d", cpu); in do_boot_cpu()
440 panic("No idle process for CPU %d", cpu); in do_boot_cpu()
442 task_set_cpu(idle, cpu); /* we schedule the first task manually */ in do_boot_cpu()
444 ia64_cpu_to_sapicid[cpu] = sapicid; in do_boot_cpu()
448 init_tasks[cpu] = idle; in do_boot_cpu()
450 Dprintk("Sending wakeup vector %lu to AP 0x%x/0x%x.\n", ap_wakeup_vector, cpu, sapicid); in do_boot_cpu()
452 platform_send_ipi(cpu, ap_wakeup_vector, IA64_IPI_DM_INT, 0); in do_boot_cpu()
459 if (test_bit(cpu, &cpu_callin_map)) in do_boot_cpu()
465 if (test_bit(cpu, &cpu_callin_map)) { in do_boot_cpu()
467 printk(KERN_INFO "CPU%d: CPU has booted.\n", cpu); in do_boot_cpu()
469 printk(KERN_ERR "Processor 0x%x/0x%x is stuck.\n", cpu, sapicid); in do_boot_cpu()
470 ia64_cpu_to_sapicid[cpu] = -1; in do_boot_cpu()
481 int sapicid, cpu; in smp_boot_cpus() local
489 for (cpu = 0; cpu < NR_CPUS; cpu++) in smp_boot_cpus()
490 ia64_cpu_to_sapicid[cpu] = -1; in smp_boot_cpus()
524 for (cpu = 0; cpu < smp_boot_data.cpu_count; cpu++) { in smp_boot_cpus()
528 sapicid = smp_boot_data.cpu_phys_id[cpu]; in smp_boot_cpus()
549 for (cpu = 0; cpu < NR_CPUS; cpu++) in smp_boot_cpus()
550 if (cpu_online_map & (1UL << cpu)) in smp_boot_cpus()
551 bogosum += cpu_data(cpu)->loops_per_jiffy; in smp_boot_cpus()
594 int sapicid, cpu, i; in smp_build_cpu_map() local
597 for (cpu = 0; cpu < NR_CPUS; cpu++) in smp_build_cpu_map()
598 ia64_cpu_to_sapicid[cpu] = -1; in smp_build_cpu_map()
602 for (cpu = 1, i = 0; i < smp_boot_data.cpu_count; i++) { in smp_build_cpu_map()
606 ia64_cpu_to_sapicid[cpu] = sapicid; in smp_build_cpu_map()
607 cpu++; in smp_build_cpu_map()