diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2019-01-08 10:11:43 +0100 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2020-10-22 00:45:10 +0200 |
commit | 0c9ef68a57e06078e5ddf9b91e403bdd99e7d912 (patch) | |
tree | 578e97e5938910d8d19773686190c51f173b71bb | |
parent | 3ba5b59878801320740fea69bf151ea819c8ee2d (diff) | |
download | linux-mmp-lr/olpc-xo175-fixes12.tar.gz |
ARM: export arm_pm_restartlr/olpc-xo175-fixes12
The OLPC XO 1.75 laptop is rebooted with a command to the Embedded
Controller. The EC driver should be a module, since most people don't need
it to be compiled in.
The EC driver can't use register_restart_handler() because handlers
registered with it are executed in atomic context and the XO 1.75 reboot
dance needs to block: the reboot is initiated by poking a GPIO ofter
which we need to wait for the EC to initiate a SPI transfer and finish
it.
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
Changes since v4:
- Clarify why we need this
-rw-r--r-- | arch/arm/kernel/reboot.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/kernel/reboot.c b/arch/arm/kernel/reboot.c index 0ce388f1542264..7769763bbe969b 100644 --- a/arch/arm/kernel/reboot.c +++ b/arch/arm/kernel/reboot.c @@ -19,6 +19,7 @@ typedef void (*phys_reset_t)(unsigned long, bool); * Function pointers to optional machine specific functions */ void (*arm_pm_restart)(enum reboot_mode reboot_mode, const char *cmd); +EXPORT_SYMBOL_GPL(arm_pm_restart); void (*pm_power_off)(void); EXPORT_SYMBOL(pm_power_off); |