Re: [PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-30 Thread Rafael J. Wysocki
On Tuesday, April 22, 2014 09:09:55 AM Pavel Machek wrote: > On Mon 2014-04-21 17:30:46, Sebastian Capella wrote: > > Reboot logic in kernel/reboot will avoid calling kernel_power_off > > when pm_power_off is null, and instead uses kernel_halt. Change > > hibernate's power_down to follow the

Re: [PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-30 Thread Rafael J. Wysocki
On Tuesday, April 22, 2014 09:09:55 AM Pavel Machek wrote: On Mon 2014-04-21 17:30:46, Sebastian Capella wrote: Reboot logic in kernel/reboot will avoid calling kernel_power_off when pm_power_off is null, and instead uses kernel_halt. Change hibernate's power_down to follow the behavior in

Re: [PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-22 Thread Pavel Machek
On Mon 2014-04-21 17:30:46, Sebastian Capella wrote: > Reboot logic in kernel/reboot will avoid calling kernel_power_off > when pm_power_off is null, and instead uses kernel_halt. Change > hibernate's power_down to follow the behavior in the reboot call. > > Calling the notifier twice (once for

Re: [PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-22 Thread Pavel Machek
On Mon 2014-04-21 17:30:46, Sebastian Capella wrote: Reboot logic in kernel/reboot will avoid calling kernel_power_off when pm_power_off is null, and instead uses kernel_halt. Change hibernate's power_down to follow the behavior in the reboot call. Calling the notifier twice (once for

[PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-21 Thread Sebastian Capella
Reboot logic in kernel/reboot will avoid calling kernel_power_off when pm_power_off is null, and instead uses kernel_halt. Change hibernate's power_down to follow the behavior in the reboot call. Calling the notifier twice (once for SYS_POWER_OFF and again for SYS_HALT) causes a panic during

[PATCH v2] PM / Hibernate: no kernel_power_off when pm_power_off NULL

2014-04-21 Thread Sebastian Capella
Reboot logic in kernel/reboot will avoid calling kernel_power_off when pm_power_off is null, and instead uses kernel_halt. Change hibernate's power_down to follow the behavior in the reboot call. Calling the notifier twice (once for SYS_POWER_OFF and again for SYS_HALT) causes a panic during