From: Sylvain Munaut <tnt@246tNt•com>
To: Linux PPC Dev <linuxppc-dev@ozlabs•org>
Subject: [RFC][PATCH] Adds support for PF_FREEZE on ppc
Date: Thu, 16 Dec 2004 15:26:35 +0100 [thread overview]
Message-ID: <41C19B1B.1050202@246tNt.com> (raw)
Hello,
While trying to use the /sys/power interface on a ppc target,
I noticed that the processes didn't freeze. Apparently, since
that interface was never used on ppc beforce, signal.c didn't handle the
signal.
The patch below fixes that for me.
Sylvain
Signed-Off-By: Sylvain Munaut <tnt@246tNt•com>
===== arch/ppc/kernel/signal.c 1.40 vs edited =====
--- 1.40/arch/ppc/kernel/signal.c 2004-10-28 09:39:49 +02:00
+++ edited/arch/ppc/kernel/signal.c 2004-12-01 09:25:55 +01:00
@@ -24,6 +24,7 @@
#include <linux/wait.h>
#include <linux/ptrace.h>
#include <linux/unistd.h>
+#include <linux/suspend.h>
#include <linux/stddef.h>
#include <linux/elf.h>
#include <linux/tty.h>
@@ -616,6 +617,11 @@
if (!oldset)
oldset = ¤t->blocked;
+
+ if (current->flags & PF_FREEZE) {
+ refrigerator(0);
+ return 0;
+ }
newsp = frame = 0;
reply other threads:[~2004-12-16 14:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41C19B1B.1050202@246tNt.com \
--to=tnt@246tnt$(echo .)com \
--cc=linuxppc-dev@ozlabs$(echo .)org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox