]> git.ipfire.org Git - thirdparty/linux.git/commit
kexec_core: Drop redundant pm_restore_gfp_mask() call
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Jul 2025 13:12:20 +0000 (15:12 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 15 Jul 2025 12:56:38 +0000 (14:56 +0200)
commit2096d42d82dc983d9db861bd6585723bd24a0819
tree1030240c9ac9e7fb6bd52b99a588d20bb611a50c
parent996afb6efd1a345736f9a888e4d6c7d4f3752aa5
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>
kernel/kexec_core.c