Re: [PATCH -mm 5/5] b43: Avoid unregistering device objects duringsuspend

From: Alan Stern
Date: Fri Jan 25 2008 - 09:58:22 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/