]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI / scan: Make namespace scanning and trimming mutually exclusive
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 27 Jan 2013 20:17:29 +0000 (21:17 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 27 Jan 2013 20:17:29 +0000 (21:17 +0100)
commit5677b743b18434844dc16680bd5efba4e4436d23
tree4919ff638fa0606267deec1d225fed199afb11e5
parentff0e79b81dd0df06d6d90d0e404f058b21b4d0b2
ACPI / scan: Make namespace scanning and trimming mutually exclusive

There is no guarantee that acpi_bus_scan() and acpi_bus_trim() will
not be run in parallel for the same scope of the ACPI namespace,
which may lead to a great deal of confusion, so introduce a new mutex
to prevent that from happening.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Yinghai Lu <yinghai@kernel.org>
drivers/acpi/scan.c