public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
* [RFC][PATCH] Adds support for PF_FREEZE on ppc
@ 2004-12-16 14:26 Sylvain Munaut
  0 siblings, 0 replies; only message in thread
From: Sylvain Munaut @ 2004-12-16 14:26 UTC (permalink / raw)
  To: Linux PPC Dev

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 = &current->blocked;
+
+       if (current->flags & PF_FREEZE) {
+               refrigerator(0);
+               return 0;
+       }

        newsp = frame = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-16 14:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-16 14:26 [RFC][PATCH] Adds support for PF_FREEZE on ppc Sylvain Munaut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox