]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries/hibernation: perform post-suspend fixups later
authorNathan Lynch <nathanl@linux.ibm.com>
Mon, 7 Dec 2020 21:51:57 +0000 (15:51 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Dec 2020 10:41:02 +0000 (21:41 +1100)
commitd9b52bbd69917cc4b5a729acf5ff5aca79042a3f
treee6ef2ee8725c806be336dca647eed131e8a14845
parent3517668ad46ff6394ceb6b73b146402956ee7351
powerpc/pseries/hibernation: perform post-suspend fixups later

The pseries hibernate code calls post_mobility_fixup() which is sort
of a dumping ground of fixups that need to run after resuming from
suspend regardless of whether suspend was a hibernation or a
migration. Calling post_mobility_fixup() from
pseries_suspend_enable_irqs() runs this code early in resume with
devices suspended and only one CPU up, while the much more commonly
used migration case runs these fixups in a more typical process
context.

Call post_mobility_fixup() after the suspend core returns a success
status to the hibernate sysfs store method and remove
pseries_suspend_enable_irqs().

Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201207215200.1785968-26-nathanl@linux.ibm.com
arch/powerpc/platforms/pseries/suspend.c