diff options
author | msmith <msmith@FreeBSD.org> | 1998-10-30 05:41:15 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1998-10-30 05:41:15 +0000 |
commit | e79dcdb69f35b4c9a8524672d1c364e750730b38 (patch) | |
tree | c2d16e98b9b0fc0b55a9e67cbcf5b278c400f11f /sys/amd64 | |
parent | 0fcabcf90e9664f8f2c243b394255dda6012386f (diff) | |
download | FreeBSD-src-e79dcdb69f35b4c9a8524672d1c364e750730b38.zip FreeBSD-src-e79dcdb69f35b4c9a8524672d1c364e750730b38.tar.gz |
Add the ability to specify where on the at_shutdown queue a handler is
installed.
Remove cpu_power_down, and replace it with an entry at the end of the
SHUTDOWN_FINAL queue in the only place it's used (APM).
Submitted by: Some ideas from Bruce Walter <walter@fortean.com>
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 16 | ||||
-rw-r--r-- | sys/amd64/include/md_var.h | 3 |
2 files changed, 2 insertions, 17 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 06db070..fd58e5a 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.312 1998/10/09 00:31:06 msmith Exp $ + * $Id: machdep.c,v 1.313 1998/10/09 23:36:26 peter Exp $ */ #include "apm.h" @@ -109,9 +109,6 @@ #include <net/netisr.h> #endif -#if NAPM > 0 -#include <machine/apm_bios.h> -#endif #include <machine/cpu.h> #include <machine/reg.h> #include <machine/clock.h> @@ -794,17 +791,6 @@ cpu_halt(void) } /* - * Turn the power off. - */ -void -cpu_power_down(void) -{ -#if NAPM > 0 - apm_power_off(); -#endif -} - -/* * Clear registers on exec */ void diff --git a/sys/amd64/include/md_var.h b/sys/amd64/include/md_var.h index a565266..82a4334 100644 --- a/sys/amd64/include/md_var.h +++ b/sys/amd64/include/md_var.h @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: md_var.h,v 1.25 1998/09/14 22:43:40 jdp Exp $ + * $Id: md_var.h,v 1.26 1998/09/25 17:34:49 peter Exp $ */ #ifndef _MACHINE_MD_VAR_H_ @@ -62,7 +62,6 @@ struct fpreg; void bcopyb __P((const void *from, void *to, size_t len)); void busdma_swi __P((void)); void cpu_halt __P((void)); -void cpu_power_down __P((void)); void cpu_reset __P((void)); void cpu_switch_load_fs __P((void)) __asm(__STRING(cpu_switch_load_fs)); void cpu_switch_load_gs __P((void)) __asm(__STRING(cpu_switch_load_gs)); |