Skip to content

Commit 2096d42

Browse files
committed
kexec_core: Drop redundant pm_restore_gfp_mask() call
Drop the direct pm_restore_gfp_mask() call from the KEXEC_JUMP flow in kernel_kexec() because it is redundant. Namely, dpm_resume_end() called beforehand in the same code path invokes that function and it is sufficient to invoke it once. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Acked-by: Baoquan He <bhe@redhat.com> Reviewed-by: Mario Limonciello <mario.limonciello@amd.com> Link: https://patch.msgid.link/1949230.tdWV9SEqCh@rjwysocki.net [ rjw: Rebase after fixing up previous changes ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 996afb6 commit 2096d42

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

kernel/kexec_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,6 @@ int kernel_kexec(void)
11351135
dpm_resume_start(PMSG_RESTORE);
11361136
Resume_devices:
11371137
dpm_resume_end(PMSG_RESTORE);
1138-
pm_restore_gfp_mask();
11391138
console_resume_all();
11401139
thaw_processes();
11411140
Restore_console:

0 commit comments

Comments
 (0)