diff options
Diffstat (limited to 'drivers/acpi/acpica/exutils.c')
-rw-r--r-- | drivers/acpi/acpica/exutils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/exutils.c b/drivers/acpi/acpica/exutils.c index 425f13372e68..a8b857a7e9fb 100644 --- a/drivers/acpi/acpica/exutils.c +++ b/drivers/acpi/acpica/exutils.c | |||
@@ -94,6 +94,10 @@ void acpi_ex_enter_interpreter(void) | |||
94 | ACPI_ERROR((AE_INFO, | 94 | ACPI_ERROR((AE_INFO, |
95 | "Could not acquire AML Interpreter mutex")); | 95 | "Could not acquire AML Interpreter mutex")); |
96 | } | 96 | } |
97 | status = acpi_ut_acquire_mutex(ACPI_MTX_NAMESPACE); | ||
98 | if (ACPI_FAILURE(status)) { | ||
99 | ACPI_ERROR((AE_INFO, "Could not acquire AML Namespace mutex")); | ||
100 | } | ||
97 | 101 | ||
98 | return_VOID; | 102 | return_VOID; |
99 | } | 103 | } |
@@ -127,6 +131,10 @@ void acpi_ex_exit_interpreter(void) | |||
127 | 131 | ||
128 | ACPI_FUNCTION_TRACE(ex_exit_interpreter); | 132 | ACPI_FUNCTION_TRACE(ex_exit_interpreter); |
129 | 133 | ||
134 | status = acpi_ut_release_mutex(ACPI_MTX_NAMESPACE); | ||
135 | if (ACPI_FAILURE(status)) { | ||
136 | ACPI_ERROR((AE_INFO, "Could not release AML Namespace mutex")); | ||
137 | } | ||
130 | status = acpi_ut_release_mutex(ACPI_MTX_INTERPRETER); | 138 | status = acpi_ut_release_mutex(ACPI_MTX_INTERPRETER); |
131 | if (ACPI_FAILURE(status)) { | 139 | if (ACPI_FAILURE(status)) { |
132 | ACPI_ERROR((AE_INFO, | 140 | ACPI_ERROR((AE_INFO, |