Re: [PATCH v4] pm_ops: add system quiesce/activate hooks

Benjamin Herrenschmidt
2007-04-13T22:24:10Z

> There are about 7 places where we do stop_platform_devices()
> local_irq_disable() stop_sysdevs(). You call your hook from one of
> them and I suspect you need to call it from more than one. Plus, the
> hook needs to have documented semantics, so people know if they should
> do local_irq_disable() or if they should call your hook.

The simple fact that these sequence is copied in 7 different places is a
pretty good illustration of what's wrong with the core pm code ...

Ben.