diff options
author | Bob Moore <robert.moore@intel.com> | 2007-02-02 11:48:21 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2007-02-02 21:14:26 -0500 |
commit | d8c71b6d3b21cf21ad775e1cf6da95bf87bd5ad4 (patch) | |
tree | 8525fe67ab2a3fb2bb4f203bdc7c9b6bb090afcc /drivers/acpi/events | |
parent | 73ca0fbcc25a6080db4136f55dbcd5fe7b33398f (diff) |
ACPICA: Remove obsolete Flags parameter.
Remove flags parameter for acpi_{get,set}_register().
It is no longer necessary now that these functions use a
spinlock for mutual exclusion.
Signed-off-by: Alexey Starikovskiy <alexey.y.starikovskiy@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/events')
-rw-r--r-- | drivers/acpi/events/evevent.c | 8 | ||||
-rw-r--r-- | drivers/acpi/events/evmisc.c | 2 | ||||
-rw-r--r-- | drivers/acpi/events/evxfevnt.c | 12 |
3 files changed, 10 insertions, 12 deletions
diff --git a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c index 6b4bc99b1c2c..f09d1aa82edb 100644 --- a/drivers/acpi/events/evevent.c +++ b/drivers/acpi/events/evevent.c | |||
@@ -204,8 +204,7 @@ static acpi_status acpi_ev_fixed_event_initialize(void) | |||
204 | if (acpi_gbl_fixed_event_info[i].enable_register_id != 0xFF) { | 204 | if (acpi_gbl_fixed_event_info[i].enable_register_id != 0xFF) { |
205 | status = | 205 | status = |
206 | acpi_set_register(acpi_gbl_fixed_event_info[i]. | 206 | acpi_set_register(acpi_gbl_fixed_event_info[i]. |
207 | enable_register_id, 0, | 207 | enable_register_id, 0); |
208 | ACPI_MTX_LOCK); | ||
209 | if (ACPI_FAILURE(status)) { | 208 | if (ACPI_FAILURE(status)) { |
210 | return (status); | 209 | return (status); |
211 | } | 210 | } |
@@ -291,7 +290,7 @@ static u32 acpi_ev_fixed_event_dispatch(u32 event) | |||
291 | /* Clear the status bit */ | 290 | /* Clear the status bit */ |
292 | 291 | ||
293 | (void)acpi_set_register(acpi_gbl_fixed_event_info[event]. | 292 | (void)acpi_set_register(acpi_gbl_fixed_event_info[event]. |
294 | status_register_id, 1, ACPI_MTX_DO_NOT_LOCK); | 293 | status_register_id, 1); |
295 | 294 | ||
296 | /* | 295 | /* |
297 | * Make sure we've got a handler. If not, report an error. | 296 | * Make sure we've got a handler. If not, report an error. |
@@ -299,8 +298,7 @@ static u32 acpi_ev_fixed_event_dispatch(u32 event) | |||
299 | */ | 298 | */ |
300 | if (NULL == acpi_gbl_fixed_event_handlers[event].handler) { | 299 | if (NULL == acpi_gbl_fixed_event_handlers[event].handler) { |
301 | (void)acpi_set_register(acpi_gbl_fixed_event_info[event]. | 300 | (void)acpi_set_register(acpi_gbl_fixed_event_info[event]. |
302 | enable_register_id, 0, | 301 | enable_register_id, 0); |
303 | ACPI_MTX_DO_NOT_LOCK); | ||
304 | 302 | ||
305 | ACPI_ERROR((AE_INFO, | 303 | ACPI_ERROR((AE_INFO, |
306 | "No installed handler for fixed event [%08X]", | 304 | "No installed handler for fixed event [%08X]", |
diff --git a/drivers/acpi/events/evmisc.c b/drivers/acpi/events/evmisc.c index 21449f36b5f8..3bacede53503 100644 --- a/drivers/acpi/events/evmisc.c +++ b/drivers/acpi/events/evmisc.c | |||
@@ -493,7 +493,7 @@ acpi_status acpi_ev_release_global_lock(void) | |||
493 | if (pending) { | 493 | if (pending) { |
494 | status = | 494 | status = |
495 | acpi_set_register(ACPI_BITREG_GLOBAL_LOCK_RELEASE, | 495 | acpi_set_register(ACPI_BITREG_GLOBAL_LOCK_RELEASE, |
496 | 1, ACPI_MTX_LOCK); | 496 | 1); |
497 | } | 497 | } |
498 | 498 | ||
499 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, | 499 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, |
diff --git a/drivers/acpi/events/evxfevnt.c b/drivers/acpi/events/evxfevnt.c index 91e5f5b53a97..a3d148e4d39f 100644 --- a/drivers/acpi/events/evxfevnt.c +++ b/drivers/acpi/events/evxfevnt.c | |||
@@ -157,7 +157,7 @@ acpi_status acpi_enable_event(u32 event, u32 flags) | |||
157 | */ | 157 | */ |
158 | status = | 158 | status = |
159 | acpi_set_register(acpi_gbl_fixed_event_info[event]. | 159 | acpi_set_register(acpi_gbl_fixed_event_info[event]. |
160 | enable_register_id, 1, ACPI_MTX_LOCK); | 160 | enable_register_id, 1); |
161 | if (ACPI_FAILURE(status)) { | 161 | if (ACPI_FAILURE(status)) { |
162 | return_ACPI_STATUS(status); | 162 | return_ACPI_STATUS(status); |
163 | } | 163 | } |
@@ -166,7 +166,7 @@ acpi_status acpi_enable_event(u32 event, u32 flags) | |||
166 | 166 | ||
167 | status = | 167 | status = |
168 | acpi_get_register(acpi_gbl_fixed_event_info[event]. | 168 | acpi_get_register(acpi_gbl_fixed_event_info[event]. |
169 | enable_register_id, &value, ACPI_MTX_LOCK); | 169 | enable_register_id, &value); |
170 | if (ACPI_FAILURE(status)) { | 170 | if (ACPI_FAILURE(status)) { |
171 | return_ACPI_STATUS(status); | 171 | return_ACPI_STATUS(status); |
172 | } | 172 | } |
@@ -356,14 +356,14 @@ acpi_status acpi_disable_event(u32 event, u32 flags) | |||
356 | */ | 356 | */ |
357 | status = | 357 | status = |
358 | acpi_set_register(acpi_gbl_fixed_event_info[event]. | 358 | acpi_set_register(acpi_gbl_fixed_event_info[event]. |
359 | enable_register_id, 0, ACPI_MTX_LOCK); | 359 | enable_register_id, 0); |
360 | if (ACPI_FAILURE(status)) { | 360 | if (ACPI_FAILURE(status)) { |
361 | return_ACPI_STATUS(status); | 361 | return_ACPI_STATUS(status); |
362 | } | 362 | } |
363 | 363 | ||
364 | status = | 364 | status = |
365 | acpi_get_register(acpi_gbl_fixed_event_info[event]. | 365 | acpi_get_register(acpi_gbl_fixed_event_info[event]. |
366 | enable_register_id, &value, ACPI_MTX_LOCK); | 366 | enable_register_id, &value); |
367 | if (ACPI_FAILURE(status)) { | 367 | if (ACPI_FAILURE(status)) { |
368 | return_ACPI_STATUS(status); | 368 | return_ACPI_STATUS(status); |
369 | } | 369 | } |
@@ -409,7 +409,7 @@ acpi_status acpi_clear_event(u32 event) | |||
409 | */ | 409 | */ |
410 | status = | 410 | status = |
411 | acpi_set_register(acpi_gbl_fixed_event_info[event]. | 411 | acpi_set_register(acpi_gbl_fixed_event_info[event]. |
412 | status_register_id, 1, ACPI_MTX_LOCK); | 412 | status_register_id, 1); |
413 | 413 | ||
414 | return_ACPI_STATUS(status); | 414 | return_ACPI_STATUS(status); |
415 | } | 415 | } |
@@ -498,7 +498,7 @@ acpi_status acpi_get_event_status(u32 event, acpi_event_status * event_status) | |||
498 | 498 | ||
499 | status = | 499 | status = |
500 | acpi_get_register(acpi_gbl_fixed_event_info[event]. | 500 | acpi_get_register(acpi_gbl_fixed_event_info[event]. |
501 | status_register_id, event_status, ACPI_MTX_LOCK); | 501 | status_register_id, event_status); |
502 | 502 | ||
503 | return_ACPI_STATUS(status); | 503 | return_ACPI_STATUS(status); |
504 | } | 504 | } |