diff options
Diffstat (limited to 'kernel/power/poweroff.c')
| -rw-r--r-- | kernel/power/poweroff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/power/poweroff.c b/kernel/power/poweroff.c index 715081b2d829..7a4144ba3afd 100644 --- a/kernel/power/poweroff.c +++ b/kernel/power/poweroff.c | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | #include <linux/init.h> | 9 | #include <linux/init.h> |
| 10 | #include <linux/pm.h> | 10 | #include <linux/pm.h> |
| 11 | #include <linux/workqueue.h> | 11 | #include <linux/workqueue.h> |
| 12 | #include <linux/reboot.h> | ||
| 12 | 13 | ||
| 13 | /* | 14 | /* |
| 14 | * When the user hits Sys-Rq o to power down the machine this is the | 15 | * When the user hits Sys-Rq o to power down the machine this is the |
| @@ -17,8 +18,7 @@ | |||
| 17 | 18 | ||
| 18 | static void do_poweroff(void *dummy) | 19 | static void do_poweroff(void *dummy) |
| 19 | { | 20 | { |
| 20 | if (pm_power_off) | 21 | kernel_power_off(); |
| 21 | pm_power_off(); | ||
| 22 | } | 22 | } |
| 23 | 23 | ||
| 24 | static DECLARE_WORK(poweroff_work, do_poweroff, NULL); | 24 | static DECLARE_WORK(poweroff_work, do_poweroff, NULL); |
