Subject: Re: shutdown -p on thinkpad x30 + ACPI kernel and FFS trouble (?)
To: None <bouyer@antioche.eu.org>
From: Masanori Kanaoka <kanaoka@ann.hi-ho.ne.jp>
List: port-i386
Date: 04/13/2003 23:18:48
Hi,

       From: Manuel Bouyer <bouyer@antioche.eu.org>
    Subject: Re: shutdown -p on thinkpad x30 + ACPI kernel and FFS trouble (?)
      Date : Sun, 13 Apr 2003 15:46:38 +0200
 Message-ID: <20030413134638.GB879@antioche.eu.org>

$ Does acpi shutdown call the shutdown power hooks ?

Maybe Yes, I think.
acpi_enter_sleep_state() was called after doshutdownhooks().

Best Regards!!
---
 Masanori Kanaoka	kanaoka@ann.hi-ho.ne.jp



In cpu_reset()@sys/arch/i386/i386/machdep.c:

        /* Disable interrupts. */
        splhigh();
 
        /* Do a dump if requested. */
        if ((howto & (RB_DUMP | RB_HALT)) == RB_DUMP)
                dumpsys();
 
haltsys: 
        doshutdownhooks();

#ifdef MULTIPROCESSOR
        x86_broadcast_ipi(X86_IPI_HALT);
#endif

        if ((howto & RB_POWERDOWN) == RB_POWERDOWN) {
#if NACPI > 0
                delay(500000);
                acpi_enter_sleep_state(acpi_softc, ACPI_STATE_S5);
                printf("WARNING: powerdown failed!\n");
#endif
#if NAPM > 0 && !defined(APM_NO_POWEROFF)
                /* turn off, if we can.  But try to turn disk off and
                 * wait a bit first--some disk drives are slow to clean up
                 * and users have reported disk corruption.
                 */