aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/executer/exutils.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2008-04-10 11:06:37 -0400
committerLen Brown <len.brown@intel.com>2008-04-22 14:29:22 -0400
commitf02e9fa1ceee045f7d5c53d475032815752a2510 (patch)
tree52da78bd3ef6442418ad2dae6fa55aab964dc6b4 /drivers/acpi/executer/exutils.c
parenta4df451a1055d97726ab890249bc3f941906fa75 (diff)
ACPICA: Misc fixes for recent global lock code update
Fixes as a result of running full validation test suite. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/executer/exutils.c')
-rw-r--r--drivers/acpi/executer/exutils.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/acpi/executer/exutils.c b/drivers/acpi/executer/exutils.c
index c40b191f70b5..fd543ee547ae 100644
--- a/drivers/acpi/executer/exutils.c
+++ b/drivers/acpi/executer/exutils.c
@@ -278,7 +278,8 @@ void acpi_ex_acquire_global_lock(u32 field_flags)
278 * 278 *
279 * FUNCTION: acpi_ex_release_global_lock 279 * FUNCTION: acpi_ex_release_global_lock
280 * 280 *
281 * PARAMETERS: None 281 * PARAMETERS: field_flags - Flags with Lock rule:
282 * always_lock or never_lock
282 * 283 *
283 * RETURN: None 284 * RETURN: None
284 * 285 *
@@ -286,12 +287,18 @@ void acpi_ex_acquire_global_lock(u32 field_flags)
286 * 287 *
287 ******************************************************************************/ 288 ******************************************************************************/
288 289
289void acpi_ex_release_global_lock(void) 290void acpi_ex_release_global_lock(u32 field_flags)
290{ 291{
291 acpi_status status; 292 acpi_status status;
292 293
293 ACPI_FUNCTION_TRACE(ex_release_global_lock); 294 ACPI_FUNCTION_TRACE(ex_release_global_lock);
294 295
296 /* Only use the lock if the always_lock bit is set */
297
298 if (!(field_flags & AML_FIELD_LOCK_RULE_MASK)) {
299 return_VOID;
300 }
301
295 /* Release the global lock */ 302 /* Release the global lock */
296 303
297 status = acpi_ex_release_mutex_object(acpi_gbl_global_lock_mutex); 304 status = acpi_ex_release_mutex_object(acpi_gbl_global_lock_mutex);