From mboxrd@z Thu Jan 1 00:00:00 1970 From: Johannes Berg Subject: [PATCH] fix windfarm core thread wrt. signal handling Date: Tue, 27 Jun 2006 20:17:46 +0200 Message-ID: <1151432266.4289.6.camel@localhost> References: <1150847482.16662.13.camel@johannes> <1150956123.3633.23.camel@localhost.localdomain> <200606221303.19860.rjw@sisk.pl> <1150974836.16258.29.camel@johannes> <1150976092.16258.33.camel@johannes> <1151394268.2350.61.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1151394268.2350.61.camel@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org Errors-To: linuxppc-dev-bounces+glppd-linuxppc64-dev=m.gmane.org@ozlabs.org To: Benjamin Herrenschmidt Cc: "Rafael J. Wysocki" , linuxppc-dev list , linux-pm@lists.osdl.org List-Id: linux-pm@vger.kernel.org This patch removes the signal_pending() from the windfarm core thread loop as it isn't necessary and messes up when there actually *is* a signal pending because we should enter the freezer. Signed-off-by: Johannes Berg diff --git a/drivers/macintosh/windfarm_core.c b/drivers/macintosh/windfarm_core.c index ab3faa7..c05a838 100644 --- a/drivers/macintosh/windfarm_core.c +++ b/drivers/macintosh/windfarm_core.c @@ -116,12 +116,6 @@ static int wf_thread_func(void *data) delay = next - jiffies; if (delay <= HZ) schedule_timeout_interruptible(delay); - - /* there should be no signal, but oh well */ - if (signal_pending(current)) { - printk(KERN_WARNING "windfarm: thread got sigl !\n"); - break; - } } DBG("wf: thread stopped\n");