Re: [PATCH] USB: fix Scheduling while atomic warning when resuming.

David Brownell
2004-12-22T04:59:05Z

On Tuesday 21 December 2004 8:46 pm, Jeff Garzik wrote:
> > If that lock were dropped, what would prevent other tasks from
> > touching the hardware while it's sending RESUME signaling down
> > the bus, and thereby mucking up the resume sequence?
>
> Precisely what other tasks are active for this hardware, during resume?

There's no guarantee that suspend() and resume() methods
are only called during system-wide suspend and resume.

And likewise, if there were no other tasks, why should
you even be concerned about spinning vs sleeping?

- Dave