shutdown_halt: make sure that watchdog timer is stopped

The point of halt is to keep the machine in limbo.

Reviewed by:	kib
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D21222
This commit is contained in:
Andriy Gapon 2019-09-04 13:26:59 +00:00
parent b539c9bfbd
commit 387df3b805

View File

@ -592,6 +592,9 @@ shutdown_halt(void *junk, int howto)
printf("\n"); printf("\n");
printf("The operating system has halted.\n"); printf("The operating system has halted.\n");
printf("Please press any key to reboot.\n\n"); printf("Please press any key to reboot.\n\n");
wdog_kern_pat(WD_TO_NEVER);
switch (cngetc()) { switch (cngetc()) {
case -1: /* No console, just die */ case -1: /* No console, just die */
cpu_halt(); cpu_halt();