Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751695Ab0FYGln (ORCPT ); Fri, 25 Jun 2010 02:41:43 -0400 Received: from ist.d-labs.de ([213.239.218.44]:54830 "EHLO mx01.d-labs.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751400Ab0FYGll (ORCPT ); Fri, 25 Jun 2010 02:41:41 -0400 Date: Fri, 25 Jun 2010 08:40:56 +0200 From: Florian Mickler To: Alan Stern Cc: "Rafael J. Wysocki" , Linux-pm mailing list , Matthew Garrett , Linux Kernel Mailing List , Dmitry Torokhov , Arve =?ISO-8859-15?Q?Hj=F8nnev=E5g?= , Neil Brown , mark gross <640e9920@gmail.com> Subject: Re: [update 2] Re: [RFC][PATCH] PM: Avoid losing wakeup events during suspend Message-ID: <20100625084056.188ba96d@schatten.dmk.lab> In-Reply-To: References: <201006241819.25055.rjw@sisk.pl> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.18.9; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 875 Lines: 23 On Thu, 24 Jun 2010 13:09:27 -0400 (EDT) Alan Stern wrote: > > > This requires you to define an explicit PCI_WAKEUP_COOLDOWN delay. I > > > think that's okay; I had to do something similar with USB and SCSI. > > > (And I still think it would be a good idea to prevent workqueue threads > > > from freezing until their queues are empty.) I'm not that familiar with the freezer, but couldn't it be deadlocky if the work depends on some already frozen part? What about a new work-type that calls pm_relax() after executing it's workfunction and executing pm_stay_awake() on enqueue? Cheers, Flo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/