On 21 February 2023 09:49:51 GMT, Oleksandr Natalenko <oleksandr@xxxxxxxxxxxxxx> wrote:On 21.02.2023 10:06, David Woodhouse wrote:
Why does arch/x86/kernel/acpi/sleep.c::x86_acpi_suspend_lowlevel() set
initial_gs = per_cpu_offset(smp_processor_id()) ?
Would it not be CPU#0 that comes back up, and should it not get
per_cpu_offset(0) ?
Wanna me try `initial_gs = per_cpu_offset(0);` too?
Hm, yes please. There's another one to make zero on the next line up, I think?