From e79dcdb69f35b4c9a8524672d1c364e750730b38 Mon Sep 17 00:00:00 2001 From: msmith Date: Fri, 30 Oct 1998 05:41:15 +0000 Subject: 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 --- sys/amd64/amd64/machdep.c | 16 +--------------- sys/amd64/include/md_var.h | 3 +-- 2 files changed, 2 insertions(+), 17 deletions(-) (limited to 'sys/amd64') 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 #endif -#if NAPM > 0 -#include -#endif #include #include #include @@ -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)); -- cgit v1.1