syscall_other: make halt tell you it's done
authorAlan Cox <alan@linux.intel.com>
Sat, 7 Jul 2018 18:48:59 +0000 (19:48 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 7 Jul 2018 18:48:59 +0000 (19:48 +0100)
Useful when you have a final sync to slow media, or a slow shutdown process
and you want to know when it's finally safe to hit off.

Kernel/syscall_other.c

index 69fab02..ead1e2c 100644 (file)
@@ -535,8 +535,10 @@ arg_t _uadmin(void)
        if (func != AD_NOSYNC)
                sync();
        /* Wants moving into machine specific files */
-       if (cmd == A_SHUTDOWN || cmd == A_DUMP)
+       if (cmd == A_SHUTDOWN || cmd == A_DUMP) {
+               kputs("Halted.\n");
                platform_monitor();
+       }
        if (cmd == A_REBOOT)
                platform_reboot();