From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Rafael J. Wysocki" Subject: Re: [PATCH -mm 2/3] Freezer: Use wait queue instead of busy looping Date: Thu, 2 Aug 2007 13:15:18 +0200 Message-ID: <200708021315.18851.rjw@sisk.pl> References: <200708012328.23939.rjw@sisk.pl> <200708012332.48798.rjw@sisk.pl> <20070801164831.ed40546d.akpm@linux-foundation.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20070801164831.ed40546d.akpm@linux-foundation.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-pm-bounces@lists.linux-foundation.org Errors-To: linux-pm-bounces@lists.linux-foundation.org To: Andrew Morton Cc: pm list , Nigel Cunningham , LKML , Pavel Machek , Oleg Nesterov List-Id: linux-pm@vger.kernel.org On Thursday, 2 August 2007 01:48, Andrew Morton wrote: > On Wed, 1 Aug 2007 23:32:48 +0200 > "Rafael J. Wysocki" wrote: > > > +/* > > + * Used to notify try_to_freeze_tasks() that the refrigerator has been entered > > + * by a task. > > + */ > > +static int refrigerator_called; > > this is rather icky. Well, the alternative would be to open code something like wait_event_timeout.