| 50 | static int running_cpus; |
| 51 | |
| 52 | static boolean_t |
| 53 | virt_start_ap(u_int id, phandle_t node, u_int addr_cells, pcell_t *reg) |
| 54 | { |
| 55 | int err; |
| 56 | |
| 57 | if (running_cpus >= mp_ncpus) |
| 58 | return (false); |
| 59 | running_cpus++; |
| 60 | |
| 61 | err = psci_cpu_on(*reg, pmap_kextract((vm_offset_t)mpentry), id); |
| 62 | |
| 63 | if (err != PSCI_RETVAL_SUCCESS) |
| 64 | return (false); |
| 65 | |
| 66 | return (true); |
| 67 | } |
| 68 | |
| 69 | void |
| 70 | virt_mp_start_ap(platform_t plat) |
nothing calls this directly
no test coverage detected