diff options
author | Dmitry Osipenko <dmitry.osipenko@collabora.com> | 2022-05-10 02:32:14 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2022-05-19 20:30:30 +0300 |
commit | 5d34b41aa420c3908793b43419a1097362ca2668 (patch) | |
tree | c5d40e7c8820f7d8fcf3a3ea5a93ac27db6883ea /kernel/reboot.c | |
parent | 2b6aa7332f8020dfdaffe340ff038aac4df35238 (diff) | |
download | linux-5d34b41aa420c3908793b43419a1097362ca2668.tar.xz |
kernel/reboot: Add stub for pm_power_off
Add weak stub for the global pm_power_off callback variable. This will
allow us to remove pm_power_off definitions from arch/ code and transition
to the new sys-off based API that will replace the global variable.
Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'kernel/reboot.c')
-rw-r--r-- | kernel/reboot.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/reboot.c b/kernel/reboot.c index 892d25aa12df..7723aff4d09b 100644 --- a/kernel/reboot.c +++ b/kernel/reboot.c @@ -58,6 +58,12 @@ struct sys_off_handler { }; /* + * Temporary stub that prevents linkage failure while we're in process + * of removing all uses of legacy pm_power_off() around the kernel. + */ +void __weak (*pm_power_off)(void); + +/* * If set, this is used for preparing the system to power off. */ |