um: Allow PM with suspend-to-idle
authorJohannes Berg <johannes.berg@intel.com>
Wed, 2 Dec 2020 19:58:06 +0000 (20:58 +0100)
committerRichard Weinberger <richard@nod.at>
Sun, 13 Dec 2020 21:22:46 +0000 (22:22 +0100)
commit92dcd3d31843fbe1a95d880dc912e1f6beac6632
treedb1504515c3e6c742212573aaef535345de81655
parent2701c1bd91dda815b8541aa8c23e1e548cdb6349
um: Allow PM with suspend-to-idle

In order to be able to experiment with suspend in UML, add the
minimal work to be able to suspend (s2idle) an instance of UML,
and be able to wake it back up from that state with the USR1
signal sent to the main UML process.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-By: Anton Ivanov <anton.ivanov@cambridgegreys.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/Kconfig
arch/um/include/shared/kern_util.h
arch/um/include/shared/os.h
arch/um/kernel/um_arch.c
arch/um/os-Linux/signal.c