[PATCH] x86_64 sync machine_power_off with i386
[firefly-linux-kernel-4.4.55.git] / arch / x86_64 / kernel / reboot.c
index 3d1cc09406a6c9583312a388f55e07d902fb43d8..47f95687905fd22d417d54632a40b784d186ed82 100644 (file)
@@ -153,6 +153,9 @@ void machine_halt(void)
 
 void machine_power_off(void)
 {
+       if (!reboot_force) {
+               machine_shutdown();
+       }
        if (pm_power_off)
                pm_power_off();
 }