Re: [PATCH v2 3/6] kernel/reboot.c: export pm_power_off_prepare

From: Andrew Morton
Date: Wed May 31 2017 - 16:54:09 EST


On Wed, 31 May 2017 08:14:54 +0200 Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> wrote:

> we need it to preconfigure PMIC to properly power off the system.

Who is "we", what is a "PMIC", what architecture is affected and where
is this code which references pm_power_off_prepare?

> --- a/kernel/reboot.c
> +++ b/kernel/reboot.c
> @@ -49,6 +49,7 @@ int reboot_force;
> */
>
> void (*pm_power_off_prepare)(void);
> +EXPORT_SYMBOL(pm_power_off_prepare);
>
> /**
> * emergency_restart - reboot the system
> --
> 2.11.0