From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from outmx015.isp.belgacom.be (outmx015.isp.belgacom.be [195.238.2.87]) by ozlabs.org (Postfix) with ESMTP id A04022BE83 for ; Fri, 17 Dec 2004 01:26:44 +1100 (EST) Received: from outmx015.isp.belgacom.be (localhost [127.0.0.1]) by outmx015.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id iBGEQb8t030724 for ; Thu, 16 Dec 2004 15:26:37 +0100 (envelope-from ) Received: from ayanami.246tNt.com (238.232-200-80.adsl.skynet.be [80.200.232.238]) by outmx015.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with ESMTP id iBGEQZMt030697 for ; Thu, 16 Dec 2004 15:26:35 +0100 (envelope-from ) Received: from [10.0.0.245] (246tNt-laptop.lan.ayanami.246tNt.com [10.0.0.245]) by ayanami.246tNt.com (Postfix) with ESMTP id E2F9A1649A4 for ; Thu, 16 Dec 2004 15:25:32 +0100 (CET) Message-ID: <41C19B1B.1050202@246tNt.com> Date: Thu, 16 Dec 2004 15:26:35 +0100 From: Sylvain Munaut MIME-Version: 1.0 To: Linux PPC Dev Content-Type: text/plain; charset=ISO-8859-1; format=flowed Subject: [RFC][PATCH] Adds support for PF_FREEZE on ppc List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 ===== 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 #include #include +#include #include #include #include @@ -616,6 +617,11 @@ if (!oldset) oldset = ¤t->blocked; + + if (current->flags & PF_FREEZE) { + refrigerator(0); + return 0; + } newsp = frame = 0;