VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Johannes Berg <johannes.berg@intel.com> 2020-12-02 20:58:07 +0100 committer: Richard Weinberger <richard@nod.at> 2020-12-13 22:22:49 +0100 commit: a374b7cb1ea648a27ceaa2dea19aa967725e938b parent: 92dcd3d31843fbe1a95d880dc912e1f6beac6632
Commit Summary:
um: Support suspend to RAM
Diffstat:
1 file changed, 5 insertions, 0 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c
index 0a2ea84033b4..510e956b4320 100644
--- a/arch/um/os-Linux/signal.c
+++ b/arch/um/os-Linux/signal.c
@@ -234,6 +234,11 @@ void set_handler(int sig)
 		panic("sigprocmask failed - errno = %d\n", errno);
 }
 
+void send_sigio_to_self(void)
+{
+	kill(os_getpid(), SIGIO);
+}
+
 int change_sig(int signal, int on)
 {
 	sigset_t sigset;