Thread (56 messages) flat view 56 messages, 3 authors, 2014-11-11

Re: [PATCH v6 00/48] kernel: Add support for power-off handler call chain

From: Pavel Machek <hidden>
Date: 2014-11-11 18:50:26
Also in: lkml

On Tue 2014-11-11 10:20:23, Guenter Roeck wrote:
On Mon, Nov 10, 2014 at 09:33:48AM +0100, Pavel Machek wrote:
quoted
Hi!
quoted
Introduce a system power-off handler call chain to solve the described
problems.  This call chain is expected to be executed from the architecture
specific machine_power_off() function.  Drivers providing system power-off
functionality are expected to register with this call chain.  By using the
priority field in the notifier block, callers can control power-off
handler
Linus rather disliked the idea of notifier chains for this... And I
don't see how it got addressed.
Hi all,

After more thought, I concluded that it is technically impossible to support
multiple power-off handlers without some kind of list or call chain, no matter
how it is called. Given the opposition from Linus and the power maintainers
to the series, I decided to shelf it.
Well, you can still do preparations -- current code directly setting
pm_power_off is ugly -- so that if you want to switch to call chain
later, it will be easy.

And if that does not happen, we still get the cleanup :-).

									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help