Re: [PATCH 7/9] kexec_core: Add and update comments regarding the KEXEC_JUMP flow

From: Dave Young
Date: Fri Jan 03 2025 - 04:24:09 EST


> diff --git a/kernel/kexec_core.c b/kernel/kexec_core.c
> index c0caa14880c3..7cf8437e0f38 100644
> --- a/kernel/kexec_core.c
> +++ b/kernel/kexec_core.c
> @@ -1001,6 +1001,12 @@ int kernel_kexec(void)
>
> #ifdef CONFIG_KEXEC_JUMP
> if (kexec_image->preserve_context) {
> + /*
> + * This flow is analogous to hibernation flows that occur before
> + * creating an image and before jumping from the restore kernel
> + * to the image one, so it uses the same device device callbacks

nitpick: s/device device/device

> + * as those two flows.
> + */
> pm_prepare_console();
> error = freeze_processes();
> if (error) {