summaryrefslogtreecommitdiffstats
path: root/arch/alpha/boot
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-05-31 14:55:15 +0200
committerJens Axboe <axboe@kernel.dk>2023-06-05 10:55:20 -0600
commitcc89c63e2fe37d476357c82390dfb12edcd41cdd (patch)
treedc0dda1d12d8913a7c5cf85147f85623711529af /arch/alpha/boot
parentd6545e687271ab27472eebff770f2de6a5f1a464 (diff)
downloadlinux-stable-cc89c63e2fe37d476357c82390dfb12edcd41cdd.tar.gz
linux-stable-cc89c63e2fe37d476357c82390dfb12edcd41cdd.tar.bz2
linux-stable-cc89c63e2fe37d476357c82390dfb12edcd41cdd.zip
PM: hibernate: move finding the resume device out of software_resume
software_resume can be called either from an init call in the boot code, or from sysfs once the system has finished booting, and the two invocation methods this can't race with each other. For the latter case we did just parse the suspend device manually, while the former might not have one. Split software_resume so that the search only happens for the boot case, which also means the special lockdep nesting annotation can go away as the system transition mutex can be taken a little later and doesn't have the sysfs locking nest inside it. Signed-off-by: Christoph Hellwig <hch@lst.de> Acked-by: Rafael J. Wysocki <rafael@kernel.org> Link: https://lore.kernel.org/r/20230531125535.676098-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'arch/alpha/boot')
0 files changed, 0 insertions, 0 deletions