Re: [PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2024-01-08 Thread Huang, Kai
> > > @@ -835,6 +835,13 @@ void __noreturn stop_this_cpu(void *dummy) > > >*/ > > > cpumask_clear_cpu(cpu, _stop_mask); > > > > > > +#ifdef CONFIG_SMP > > > + if (smp_ops.stop_this_cpu) { > > > + smp_ops.stop_this_cpu(); > > > + unreachable(); > > > + } > > > +#endif > >

Re: [PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2024-01-08 Thread kirill.shute...@linux.intel.com
On Mon, Jan 08, 2024 at 03:04:31AM +, Huang, Kai wrote: > On Mon, 2023-12-25 at 11:05 +0300, Kirill A. Shutemov wrote: > > If the helper is defined, it is called instead of halt() to stop the CPU > > at the end of stop_this_cpu() and on crash CPU shutdown. > > > > ACPI MADT will use it to

Re: [PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2024-01-07 Thread Huang, Kai
On Mon, 2023-12-25 at 11:05 +0300, Kirill A. Shutemov wrote: > If the helper is defined, it is called instead of halt() to stop the CPU > at the end of stop_this_cpu() and on crash CPU shutdown. > > ACPI MADT will use it to hand over the CPU to BIOS in order to be able > to wake it up again after

[PATCHv5.1 14/16] x86/smp: Add smp_ops.stop_this_cpu() callback

2023-12-25 Thread Kirill A. Shutemov
If the helper is defined, it is called instead of halt() to stop the CPU at the end of stop_this_cpu() and on crash CPU shutdown. ACPI MADT will use it to hand over the CPU to BIOS in order to be able to wake it up again after kexec. Signed-off-by: Kirill A. Shutemov --- v5.1: - Fix build