freebsd-dev/sys/dev/acpica
Hans Petter Selasky a26871e7ff Fix startup race initialising ACPI CM battery structures on MacBookPro.
During acpi_cmbat_attach() the acpi_cmbat_init_battery() notification
handler is registered. It has been observed this notification handler
can be called instantly, before the attach routine has returned. In
the notification handler there is a call to device_is_attached() which
returns false. Because the softc is set we know an attach is in
progress and the fix is simply to wait and try again in this case.

Reviewed by:		avg @
MFC after:		1 week
2017-02-27 08:36:51 +00:00
..
Osd Merge ACPICA 20161222. 2017-01-05 21:28:25 +00:00
acpi_acad.c
acpi_battery.c
acpi_button.c
acpi_cmbat.c Fix startup race initialising ACPI CM battery structures on MacBookPro. 2017-02-27 08:36:51 +00:00
acpi_cpu.c Remove cpu_deepest_sleep variable. 2017-02-24 16:11:55 +00:00
acpi_dock.c
acpi_ec.c
acpi_hpet.c
acpi_hpet.h
acpi_if.m
acpi_isab.c
acpi_lid.c
acpi_package.c acpica: remove a superfluous NULL check 2017-02-16 20:27:22 +00:00
acpi_pci_link.c
acpi_pci.c
acpi_pcib_acpi.c Convert PCIe Hot Plug to using pci_request_feature 2017-02-25 06:11:59 +00:00
acpi_pcib_pci.c
acpi_pcib.c
acpi_pcibvar.h
acpi_pcivar.h
acpi_perf.c
acpi_powerres.c
acpi_quirk.c
acpi_quirks
acpi_resource.c
acpi_smbat.c
acpi_smbus.h
acpi_thermal.c Attach a "thermal_zone" label to the ACPI thermal zone sysctls. 2016-12-14 13:00:27 +00:00
acpi_throttle.c
acpi_timer.c
acpi_video.c
acpi.c Add support to read the _CLS entry if it's present. It is used by 2016-12-16 10:40:00 +00:00
acpiio.h
acpivar.h Add support to read the _CLS entry if it's present. It is used by 2016-12-16 10:40:00 +00:00