Leave acpi enabled in panic shutdown case?
From: Nate Lawson (nate_at_root.org)
Date: 08/26/04
- Previous message: Garance A Drosihn: "Re: erase/erase2 support"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 26 Aug 2004 10:09:40 -0700 To: arch@freebsd.org
It seems some people may get a 2nd panic when acpi is shutdown after a
panic. I think it makes sense not to do the normal shutdown path if
panicing. Is the correct way to check for this panicstr != NULL?
The attached patch avoids calling AcpiTerminate() for the panic case.
-Nate
Index: acpi.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/acpica/acpi.c,v
retrieving revision 1.189
diff -u -r1.189 acpi.c
--- acpi.c 23 Aug 2004 16:28:42 -0000 1.189
+++ acpi.c 26 Aug 2004 01:37:13 -0000
@@ -1365,7 +1365,7 @@
DELAY(1000000);
printf("ACPI power-off failed - timeout\n");
}
- } else {
+ } else if (panicstr == NULL) {
printf("Shutting down ACPI\n");
AcpiTerminate();
}
_______________________________________________
freebsd-arch@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Garance A Drosihn: "Re: erase/erase2 support"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|