From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sipsolutions.net (crystal.sipsolutions.net [195.210.38.204]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id F287E67A65 for ; Wed, 28 Jun 2006 04:18:04 +1000 (EST) Subject: [PATCH] fix windfarm core thread wrt. signal handling From: Johannes Berg To: Benjamin Herrenschmidt In-Reply-To: <1151394268.2350.61.camel@localhost.localdomain> 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> Content-Type: text/plain Date: Tue, 27 Jun 2006 20:17:46 +0200 Message-Id: <1151432266.4289.6.camel@localhost> Mime-Version: 1.0 Cc: "Rafael J. Wysocki" , linuxppc-dev list , linux-pm@lists.osdl.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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");