Lines Matching full:cpuid
46 int cpuid; in smp_prepare_cpus() local
53 for_each_possible_cpu(cpuid) { in smp_prepare_cpus()
54 if (cpuid == smp_processor_id()) in smp_prepare_cpus()
56 if (cpu_ops[cpuid]->cpu_prepare) { in smp_prepare_cpus()
57 ret = cpu_ops[cpuid]->cpu_prepare(cpuid); in smp_prepare_cpus()
61 set_cpu_present(cpuid, true); in smp_prepare_cpus()
70 int cpuid = 1; in setup_smp() local
84 if (cpuid >= NR_CPUS) { in setup_smp()
85 pr_warn("Invalid cpuid [%d] for hartid [%d]\n", in setup_smp()
86 cpuid, hart); in setup_smp()
90 cpuid_to_hartid_map(cpuid) = hart; in setup_smp()
91 cpuid++; in setup_smp()
96 if (cpuid > nr_cpu_ids) in setup_smp()
98 cpuid, nr_cpu_ids); in setup_smp()
100 for (cpuid = 1; cpuid < nr_cpu_ids; cpuid++) { in setup_smp()
101 if (cpuid_to_hartid_map(cpuid) != INVALID_HARTID) { in setup_smp()
102 cpu_set_ops(cpuid); in setup_smp()
103 set_cpu_possible(cpuid, true); in setup_smp()