summaryrefslogtreecommitdiff
path: root/include/linux/reboot.h
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2023-11-29 15:43:28 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2024-01-02 11:33:18 +0300
commit5a0e241003b80247de59727c945bc94c848f893d (patch)
treeecb2477225fcd0b6933960a01b9426801ab5adf0 /include/linux/reboot.h
parent87f67d1747bc3ce8ace14be99b47d7731041ff03 (diff)
downloadlinux-5a0e241003b80247de59727c945bc94c848f893d.tar.xz
thermal/core: Prepare for introduction of thermal reboot
Add some helper functions to make it easier introducing the support for thermal reboot. No functional change. Signed-off-by: Fabio Estevam <festevam@denx.de> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20231129124330.519423-2-festevam@gmail.com
Diffstat (limited to 'include/linux/reboot.h')
-rw-r--r--include/linux/reboot.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/linux/reboot.h b/include/linux/reboot.h
index c4cc3b89ced1..4586c663884e 100644
--- a/include/linux/reboot.h
+++ b/include/linux/reboot.h
@@ -177,7 +177,12 @@ void ctrl_alt_del(void);
extern void orderly_poweroff(bool force);
extern void orderly_reboot(void);
-void hw_protection_shutdown(const char *reason, int ms_until_forced);
+void __hw_protection_shutdown(const char *reason, int ms_until_forced, bool shutdown);
+
+static inline void hw_protection_shutdown(const char *reason, int ms_until_forced)
+{
+ __hw_protection_shutdown(reason, ms_until_forced, true);
+}
/*
* Emergency restart, callable from an interrupt handler.