diff options
Diffstat (limited to 'drivers/acpi/executer/exsystem.c')
| -rw-r--r-- | drivers/acpi/executer/exsystem.c | 78 |
1 files changed, 1 insertions, 77 deletions
diff --git a/drivers/acpi/executer/exsystem.c b/drivers/acpi/executer/exsystem.c index 28aef3e69ecc..3b9736a3e1b7 100644 --- a/drivers/acpi/executer/exsystem.c +++ b/drivers/acpi/executer/exsystem.c | |||
| @@ -227,82 +227,6 @@ acpi_status acpi_ex_system_do_suspend(acpi_integer how_long) | |||
| 227 | 227 | ||
| 228 | /******************************************************************************* | 228 | /******************************************************************************* |
| 229 | * | 229 | * |
| 230 | * FUNCTION: acpi_ex_system_acquire_mutex | ||
| 231 | * | ||
| 232 | * PARAMETERS: time_desc - Maximum time to wait for the mutex | ||
| 233 | * obj_desc - The object descriptor for this op | ||
| 234 | * | ||
| 235 | * RETURN: Status | ||
| 236 | * | ||
| 237 | * DESCRIPTION: Provides an access point to perform synchronization operations | ||
| 238 | * within the AML. This function will cause a lock to be generated | ||
| 239 | * for the Mutex pointed to by obj_desc. | ||
| 240 | * | ||
| 241 | ******************************************************************************/ | ||
| 242 | |||
| 243 | acpi_status | ||
| 244 | acpi_ex_system_acquire_mutex(union acpi_operand_object * time_desc, | ||
| 245 | union acpi_operand_object * obj_desc) | ||
| 246 | { | ||
| 247 | acpi_status status = AE_OK; | ||
| 248 | |||
| 249 | ACPI_FUNCTION_TRACE_PTR(ex_system_acquire_mutex, obj_desc); | ||
| 250 | |||
| 251 | if (!obj_desc) { | ||
| 252 | return_ACPI_STATUS(AE_BAD_PARAMETER); | ||
| 253 | } | ||
| 254 | |||
| 255 | /* Support for the _GL_ Mutex object -- go get the global lock */ | ||
| 256 | |||
| 257 | if (obj_desc->mutex.os_mutex == ACPI_GLOBAL_LOCK) { | ||
| 258 | status = | ||
| 259 | acpi_ev_acquire_global_lock((u16) time_desc->integer.value); | ||
| 260 | return_ACPI_STATUS(status); | ||
| 261 | } | ||
| 262 | |||
| 263 | status = acpi_ex_system_wait_mutex(obj_desc->mutex.os_mutex, | ||
| 264 | (u16) time_desc->integer.value); | ||
| 265 | return_ACPI_STATUS(status); | ||
| 266 | } | ||
| 267 | |||
| 268 | /******************************************************************************* | ||
| 269 | * | ||
| 270 | * FUNCTION: acpi_ex_system_release_mutex | ||
| 271 | * | ||
| 272 | * PARAMETERS: obj_desc - The object descriptor for this op | ||
| 273 | * | ||
| 274 | * RETURN: Status | ||
| 275 | * | ||
| 276 | * DESCRIPTION: Provides an access point to perform synchronization operations | ||
| 277 | * within the AML. This operation is a request to release a | ||
| 278 | * previously acquired Mutex. If the Mutex variable is set then | ||
| 279 | * it will be decremented. | ||
| 280 | * | ||
| 281 | ******************************************************************************/ | ||
| 282 | |||
| 283 | acpi_status acpi_ex_system_release_mutex(union acpi_operand_object *obj_desc) | ||
| 284 | { | ||
| 285 | acpi_status status = AE_OK; | ||
| 286 | |||
| 287 | ACPI_FUNCTION_TRACE(ex_system_release_mutex); | ||
| 288 | |||
| 289 | if (!obj_desc) { | ||
| 290 | return_ACPI_STATUS(AE_BAD_PARAMETER); | ||
| 291 | } | ||
| 292 | |||
| 293 | /* Support for the _GL_ Mutex object -- release the global lock */ | ||
| 294 | |||
| 295 | if (obj_desc->mutex.os_mutex == ACPI_GLOBAL_LOCK) { | ||
| 296 | status = acpi_ev_release_global_lock(); | ||
| 297 | return_ACPI_STATUS(status); | ||
| 298 | } | ||
| 299 | |||
| 300 | acpi_os_release_mutex(obj_desc->mutex.os_mutex); | ||
| 301 | return_ACPI_STATUS(AE_OK); | ||
| 302 | } | ||
| 303 | |||
| 304 | /******************************************************************************* | ||
| 305 | * | ||
| 306 | * FUNCTION: acpi_ex_system_signal_event | 230 | * FUNCTION: acpi_ex_system_signal_event |
| 307 | * | 231 | * |
| 308 | * PARAMETERS: obj_desc - The object descriptor for this op | 232 | * PARAMETERS: obj_desc - The object descriptor for this op |
| @@ -314,7 +238,7 @@ acpi_status acpi_ex_system_release_mutex(union acpi_operand_object *obj_desc) | |||
| 314 | * | 238 | * |
| 315 | ******************************************************************************/ | 239 | ******************************************************************************/ |
| 316 | 240 | ||
| 317 | acpi_status acpi_ex_system_signal_event(union acpi_operand_object *obj_desc) | 241 | acpi_status acpi_ex_system_signal_event(union acpi_operand_object * obj_desc) |
| 318 | { | 242 | { |
| 319 | acpi_status status = AE_OK; | 243 | acpi_status status = AE_OK; |
| 320 | 244 | ||
