freebsd-skq/sys/dev/acpica
Attilio Rao 444b91868b Make the newbus subsystem Giant free by adding the new newbus sxlock.
The newbus lock is responsible for protecting newbus internIal structures,
device states and devclass flags. It is necessary to hold it when all
such datas are accessed. For the other operations, softc locking should
ensure enough protection to avoid races.

Newbus lock is automatically held when virtual operations on the device
and bus are invoked when loading the driver or when the suspend/resume
take place. For other 'spourious' operations trying to access/modify
the newbus topology, newbus lock needs to be automatically acquired and
dropped.

For the moment Giant is also acquired in some key point (modules subsystem)
in order to avoid problems before the 8.0 release as module handlers could
make assumptions about it. This Giant locking should go just after
the release happens.

Please keep in mind that the public interface can be expanded in order
to provide more support, if there are really necessities at some point
and also some bugs could arise as long as the patch needs a bit of
further testing.

Bump __FreeBSD_version in order to reflect the newbus lock introduction.

Reviewed by:    ed, hps, jhb, imp, mav, scottl
No answer by:   ariff, thompsa, yongari
Tested by:      pho,
                G. Trematerra <giovanni dot trematerra at gmail dot com>,
                Brandon Gooch <jamesbrandongooch at gmail dot com>
Sponsored by:   Yahoo! Incorporated
Approved by:	re (ksmith)
2009-08-02 14:28:40 +00:00
..
Osd Add a missing return in NULL mutex case. 2009-06-22 17:46:55 +00:00
acpi_acad.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_battery.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
acpi_button.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_cmbat.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_cpu.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
acpi_dock.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
acpi_ec.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_hpet.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_hpet.h Add a header containing constants for the various HPET registers and their 2008-01-16 18:47:07 +00:00
acpi_if.m Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_isab.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_lid.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_package.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_pci_link.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_pci.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_pcib_acpi.c Match PCI Express root bridge _HID directly instead of 2009-07-13 21:36:31 +00:00
acpi_pcib_pci.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_pcib.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_pcibvar.h
acpi_perf.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_powerres.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_quirk.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_quirks
acpi_resource.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_smbat.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_smbus.h Import ACPI smart battery support. Newer systems (Acer, mostly) do not 2005-10-23 00:20:13 +00:00
acpi_thermal.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
acpi_throttle.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_timer.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi_video.c Import ACPICA 20090521. 2009-06-05 18:44:36 +00:00
acpi.c Make the newbus subsystem Giant free by adding the new newbus sxlock. 2009-08-02 14:28:40 +00:00
acpiio.h Update the suspend/resume user API while maintaining backwards compat. 2007-06-21 22:50:37 +00:00
acpivar.h Catch up with r193750 (OsdSynch.c locking changes): 2009-06-10 22:54:20 +00:00