Lines Matching refs:cpu_id
262 static bool is_cpu_used(u32 cpu_id) in is_cpu_used() argument
264 return !!(env_common.core_mask.val & BIT(cpu_id)); in is_cpu_used()
410 static void smp_kick_cpu_x(u32 cpu_id) in smp_kick_cpu_x() argument
414 if (cpu_id > NR_CPUS) in smp_kick_cpu_x()
418 cmd |= (1 << cpu_id); in smp_kick_cpu_x()
483 static noinline void do_init_slave_cpu(u32 cpu_id) in do_init_slave_cpu() argument
487 u32 stack_ptr = (u32)(slave_stack + (64 * cpu_id)); in do_init_slave_cpu()
489 if (cpu_id >= NR_CPUS) in do_init_slave_cpu()
497 debug("CPU %u: stack pool base: %p\n", cpu_id, slave_stack); in do_init_slave_cpu()
498 debug("CPU %u: current slave stack base: %x\n", cpu_id, stack_ptr); in do_init_slave_cpu()
501 smp_kick_cpu_x(cpu_id); in do_init_slave_cpu()
503 debug("CPU %u: cross-cpu flag: %x [before timeout]\n", cpu_id, in do_init_slave_cpu()
517 pr_err("CPU %u is not responding after init!\n", cpu_id); in do_init_slave_cpu()
520 if (arc_read_uncached_32(&cross_cpu_data.status[cpu_id]) != BOOTSTAGE_2) in do_init_slave_cpu()
521 pr_err("CPU %u status is unexpected: %d\n", cpu_id, in do_init_slave_cpu()
522 arc_read_uncached_32(&cross_cpu_data.status[cpu_id])); in do_init_slave_cpu()
524 debug("CPU %u: cross-cpu flag: %x [after timeout]\n", cpu_id, in do_init_slave_cpu()
526 debug("CPU %u: status: %d [after timeout]\n", cpu_id, in do_init_slave_cpu()
527 arc_read_uncached_32(&cross_cpu_data.status[cpu_id])); in do_init_slave_cpu()