linux-pm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/1] PM / Hibernate: no kernel_power_off when pm_power_off
@ 2014-03-20 20:53 Sebastian Capella
  2014-03-20 20:53 ` [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL Sebastian Capella
  0 siblings, 1 reply; 15+ messages in thread
From: Sebastian Capella @ 2014-03-20 20:53 UTC (permalink / raw)
  To: linux-kernel, linux-pm, linaro-kernel

Patch to avoid calling kernel_power_off when pm_power_off is null.
When pm_power_off is null, the platform will not power off in
kernel_power_off.  Currently, hibernate will call kernel_power_off and
then move on to kernel_halt.  However, this calls the notifier chain
twice with a different parameter.  In kernel/reboot.c, this is avoided
by checking if pm_power_off is NULL and bypassing kernel_power_off.

Mostly, this is a check if anyone is dependent on having the reboot
notifier called 2x if pm_power_off is null.  There are some panics if
it's called this way in some drivers.

Tested this on omap beaglebone black, but have not tried on other
hardware.  Please let me know if you can test this on another platform
and the results.

Thanks,

Sebastian

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-04-20 14:06 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-20 20:53 [PATCH RFC 0/1] PM / Hibernate: no kernel_power_off when pm_power_off Sebastian Capella
2014-03-20 20:53 ` [PATCH RFC] PM / Hibernate: no kernel_power_off when pm_power_off NULL Sebastian Capella
2014-03-20 21:23   ` Pavel Machek
2014-03-20 21:35     ` One Thousand Gnomes
2014-03-20 21:36       ` Sebastian Capella
2014-03-26 17:22         ` Sebastian Capella
2014-04-15 18:34           ` Sebastian Capella
2014-04-15 20:54             ` Russell King - ARM Linux
2014-04-15 21:18               ` Pavel Machek
2014-04-16 16:28                 ` Sebastian Capella
2014-04-16 20:41                   ` Russell King - ARM Linux
2014-04-16 20:57                     ` One Thousand Gnomes
2014-04-16 21:09                       ` Russell King - ARM Linux
2014-04-18 21:38                         ` Sebastian Capella
2014-04-20 14:06                           ` Pavel Machek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).