From nobody  Mon Nov  9 20:50:34 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id UAA09393;
          Mon, 9 Nov 1998 20:50:34 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199811100450.UAA09393@hub.freebsd.org>
Date: Mon, 9 Nov 1998 20:50:34 -0800 (PST)
From: nakagawa@jp.FreeBSD.org
To: freebsd-gnats-submit@freebsd.org
Subject: cpu_power_down() is dirty
X-Send-Pr-Version: www-1.0

>Number:         8638
>Category:       i386
>Synopsis:       cpu_power_down() is dirty
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov  9 21:00:01 PST 1998
>Closed-Date:    Thu Dec 10 15:36:29 PST 1998
>Last-Modified:  Thu Dec 10 15:37:26 PST 1998
>Originator:     NAKAGAWA, Yoshihisa
>Release:        3.0-RELEASE
>Organization:
Japan FreeBSD Users Group
>Environment:
>Description:
It should be halt only when "shutdown -h", and be use another option for 
power-control, like "-x".

cpu_power_down() is dirty, if you want power-control, should be use "halt -p".
My patch's scheme is machine-arch independ, and support "multi" power-control 
mechanism. (ex: APM 1.1, UPS, ... if driver exist)

If you want to add new power-control mechanism, register power-control "func" using
 "at_shutdown(func, NULL, SHUTDOWN_POWER_OFF);". Don't need to change shutdown 
command.
>How-To-Repeat:

>Fix:
patch available:

kernel  http://www.jp.freebsd.org/~nakagawa/files/300R/shutdown.patch
command http://www.jp.freebsd.org/~nakagawa/files/300R/shutdown.sbin.patch
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: msmith 
State-Changed-When: Thu Dec 10 15:36:29 PST 1998 
State-Changed-Why:  
PR's use of at_shutdown() is already in place; suggestion to use RM_POWEROFF 
instead of RB_HALT was implemented. 
>Unformatted:
