Lines Matching refs:cpu_id
163 pub fn cpuhp_state(&self, cpu_id: ProcessorId) -> &CpuHpCpuState { in cpuhp_state()
164 unsafe { self.cpuhp_state.force_get(cpu_id) } in cpuhp_state()
168 fn cpuhp_state_mut(&self, cpu_id: ProcessorId) -> &mut CpuHpCpuState { in cpuhp_state_mut()
169 unsafe { self.cpuhp_state.force_get_mut(cpu_id) } in cpuhp_state_mut()
175 cpu_id: ProcessorId, in set_cpuhp_state()
178 let p = self.cpuhp_state.force_get_mut(cpu_id); in set_cpuhp_state()
188 pub fn set_online_cpu(&self, cpu_id: ProcessorId) { in set_online_cpu()
189 unsafe { self.set_cpuhp_state(cpu_id, CpuHpState::Online) }; in set_online_cpu()
200 for cpu_id in self.present_cpus().iter_cpu() { in bringup_nonboot_cpus()
201 if cpu_id == smp_get_processor_id() { in bringup_nonboot_cpus()
205 debug!("Bring up CPU {}", cpu_id.data()); in bringup_nonboot_cpus()
207 if let Err(e) = self.cpu_up(cpu_id, CpuHpState::Online) { in bringup_nonboot_cpus()
208 error!("Failed to bring up CPU {}: {:?}", cpu_id.data(), e); in bringup_nonboot_cpus()
215 fn cpu_up(&self, cpu_id: ProcessorId, target_state: CpuHpState) -> Result<(), SystemError> { in cpu_up()
216 if !self.possible_cpus().get(cpu_id).unwrap_or(false) { in cpu_up()
220 let cpu_state = self.cpuhp_state(cpu_id).state; in cpu_up()
223 cpu_id.data(), in cpu_up()
232 unsafe { self.set_cpuhp_state(cpu_id, target_state) }; in cpu_up()
233 let cpu_state = self.cpuhp_state(cpu_id).state; in cpu_up()
235 self.cpuhp_kick_ap(cpu_id, target_state)?; in cpu_up()
243 cpu_id: ProcessorId, in cpuhp_kick_ap()
246 let prev_state = unsafe { self.set_cpuhp_state(cpu_id, target_state) }; in cpuhp_kick_ap()
247 let hpstate = self.cpuhp_state_mut(cpu_id); in cpuhp_kick_ap()
260 let cpu_id = pcb.sched_info().on_cpu().ok_or(SystemError::EINVAL)?; in do_cpuhp_kick_ap() localVariable
266 CurrentSMPArch::start_cpu(cpu_id, cpu_state)?; in do_cpuhp_kick_ap()
286 let cpu_id = smp_get_processor_id(); in complete_ap_thread() localVariable
287 let cpu_state = self.cpuhp_state_mut(cpu_id); in complete_ap_thread()