njl bae72efa1a * Add a DEVMETHOD for acpi so that child detach methods get called. Add
an acpi_cpu method for shutdown that disables entry to acpi_cpu_idle
  and then IPIs/waits for threads to exit.  This fixes a panic late in
  reboot in the SMP case.

* In the !SMP case, don't use the processor id filled out by the MADT
  since there can only be one processor.  This was causing a panic in
  acpi_cpu_idle if the id was 1 since the data was being dereferenced from
  cpu_softc[1] even though the actual data was in cpu_softc[0] (which is
  correct).

* Rework the initialization functions so that cpu_idle_hook is written
  late in the boot process.

* Make the P_BLK, P_BLK_LEN, and cpu_cx_count all softc-local variables.
  This will help SMP boxes that have _CST or multiple P_BLKs.  No such
  boxes are known at this time.

* Always allocate the C1 state, even if the P_BLK is invalid.  This means
  we will always take over idling if enabled.  Remove the value -1 as
  valid for cx_lowest since this is redundant with machdep.cpu_idle_hlt.

* Reduce locking for the throttle initialization case to around the write
  to the smi_cmd port.  Add disabled code to write the CST_CNT.  It will
  be enabled once _CST re-evaluation is tested (post 5.2R).

Thank you:	dfr, imp, jhb, marcel, peter
Tested by:	rwatson, Harald Schmalzbauer <h@schmalzbauer.de>
Approved by:	re (rwatson)
2003-11-19 20:27:06 +00:00
..
2003-08-24 17:55:58 +00:00
2003-10-10 22:49:40 +00:00
2003-11-07 03:01:48 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-11-14 18:02:25 +00:00
2003-11-02 20:13:39 +00:00
2003-11-13 06:29:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-11-16 22:33:42 +00:00
2003-10-18 17:28:36 +00:00
2003-11-14 05:13:00 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-11-03 15:58:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-10-18 17:26:13 +00:00
2003-11-04 06:30:59 +00:00
2003-08-24 17:55:58 +00:00
2003-11-17 23:02:21 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 17:55:58 +00:00
2003-08-24 18:03:45 +00:00
2003-11-11 22:15:17 +00:00
2003-06-02 16:32:55 +00:00
2003-09-02 17:30:40 +00:00
2003-09-02 17:30:40 +00:00
2003-08-24 17:55:58 +00:00
2003-09-02 17:30:40 +00:00
2003-11-06 08:09:29 +00:00
2003-08-24 17:55:58 +00:00
2003-11-16 13:13:16 +00:00
2003-08-24 17:55:58 +00:00