void arch_shutdown_cpu(unsigned int cpu_id) { arch_suspend_cpu(cpu_id); per_cpu(cpu_id)->shutdown_cpu = true; arch_resume_cpu(cpu_id); /* * Note: The caller has to ensure that the target CPU has enough time * to reach the shutdown position before destroying the code path it * has to take to get there. This can be ensured by bringing the CPU * online again under Linux before cleaning up the hypervisor. */ }
void arch_shutdown_cpu(unsigned int cpu_id) { arch_suspend_cpu(cpu_id); per_cpu(cpu_id)->shutdown_cpu = true; arch_resume_cpu(cpu_id); }