ACPI: Make seemingly useless check in osl.c more understandable
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 2 Nov 2012 12:09:08 +0000 (13:09 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 14 Nov 2012 23:18:20 +0000 (00:18 +0100)
commit3ae45a27df74358b4bcd3d5a67e47ad734a48945
tree17ffd507fd96a4567fa2d6076b497298384d0945
parentc5b18e22e74dc7dbd3f7729997a3a553ce761d2b
ACPI: Make seemingly useless check in osl.c more understandable

There is a seemingly useless check in drivers/acpi/osl.c added by
commit bc73675 (ACPI: fixes a false alarm from lockdep), which really
is necessary to avoid false positive lockdep complaints.  Document
this and rearrange the code related to it so that it makes fewer
checks.

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