Leave acpi enabled in panic shutdown case?

From: Nate Lawson (nate_at_root.org)
Date: 08/26/04

  • Next message: necro: "Documentation"
    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"


  • Next message: necro: "Documentation"

    Relevant Pages

    • Re: Hibernation considerations
      ... memory and the system stays awake enough to keep the memory refreshed. ... done with the hardware before a resume (the resume could even take place ... Part of the problem here is that ACPI already has its own terminology, ... something which would look to ACPI like a normal shutdown. ...
      (Linux-Kernel)
    • Re: Radeon driver and Xfree86
      ... it seems that system goes through a normal shutdown. ... I can then bring the computer up and it comes up normally without checking file systems, etc. I've experienced this about 2 or 3 times in about the last two weeks. ... There are open source drivers ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)