Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758885AbYAYO6T (ORCPT ); Fri, 25 Jan 2008 09:58:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758116AbYAYO6D (ORCPT ); Fri, 25 Jan 2008 09:58:03 -0500 Received: from iolanthe.rowland.org ([192.131.102.54]:60814 "HELO iolanthe.rowland.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758080AbYAYO6A (ORCPT ); Fri, 25 Jan 2008 09:58:00 -0500 Date: Fri, 25 Jan 2008 09:58:00 -0500 (EST) From: Alan Stern X-X-Sender: stern@iolanthe.rowland.org To: Pavel Machek cc: "Rafael J. Wysocki" , Andrew Morton , Michael Buesch , pm list , Len Brown , LKML , , Alessandro Rubini , Richard Purdie Subject: Re: [PATCH -mm 5/5] b43: Avoid unregistering device objects during suspend In-Reply-To: <20080125074746.GC4134@ucw.cz> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 736 Lines: 20 On Fri, 25 Jan 2008, Pavel Machek wrote: > Maybe we should have global suspend_in_progress (or maybe system_state > == suspending?) and automatically switch to schedule_removal() while > it is set? :-) There was a time a couple of years ago when you objected violently to the mere suggestion of such a global variable! It's not a bad idea IMO. But if it does get implemented, a global function would be better than a global variable. It would provide more encapsulation. Alan Stern -- 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/