freebsd-dev/sys/dev/acpica
Nate Lawson 56a70eadf5 * 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
..
Osd Reindent to non-style(9) compliant 4 space indent to match rest of file. 2003-11-12 16:24:16 +00:00
acpi_acad.c Add devctl(4) notify support to ACPI. Various subsystems now notify 2003-10-25 05:03:25 +00:00
acpi_battery.c
acpi_button.c Add devctl(4) notify support to ACPI. Various subsystems now notify 2003-10-25 05:03:25 +00:00
acpi_cmbat.c Add devctl(4) notify support to ACPI. Various subsystems now notify 2003-10-25 05:03:25 +00:00
acpi_cpu.c * Add a DEVMETHOD for acpi so that child detach methods get called. Add 2003-11-19 20:27:06 +00:00
acpi_ec.c Consistently print attach messages. 2003-09-26 05:24:55 +00:00
acpi_isab.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
acpi_lid.c Add devctl(4) notify support to ACPI. Various subsystems now notify 2003-10-25 05:03:25 +00:00
acpi_package.c Add acpi_package.c with routines for validating packages and pulling 2003-11-15 19:20:46 +00:00
acpi_pci_link.c Improve support for extended IRQ resources: 2003-11-14 21:36:09 +00:00
acpi_pci.c Add pci_resume() to reestablish interrupt routing after 2003-09-17 08:32:44 +00:00
acpi_pcib_acpi.c
acpi_pcib_pci.c Use __FBSDID(). 2003-08-24 17:55:58 +00:00
acpi_pcib.c Improve support for extended IRQ resources: 2003-11-14 21:36:09 +00:00
acpi_pcibvar.h
acpi_powerres.c Style and whitespace changes. Also, make the ivar functions non-inline 2003-08-28 16:06:30 +00:00
acpi_resource.c Consistently print attach messages. 2003-09-26 05:24:55 +00:00
acpi_thermal.c Add devctl(4) notify support to ACPI. Various subsystems now notify 2003-10-25 05:03:25 +00:00
acpi_timer.c Style and whitespace changes. Also, make the ivar functions non-inline 2003-08-28 16:06:30 +00:00
acpi.c * Add a DEVMETHOD for acpi so that child detach methods get called. Add 2003-11-19 20:27:06 +00:00
acpiio.h Add the -i flag to acpiconf(8) to retrieve battery information. 2003-09-13 20:13:01 +00:00
acpivar.h Add acpi_package.c with routines for validating packages and pulling 2003-11-15 19:20:46 +00:00
madt.h Move the definitions for ACPI MADT table entries not present in the ACPICA 2003-09-10 06:32:27 +00:00