ACPICA: SCI Handlers: Update handler interface, eliminate unnecessary argument.
authorBob Moore <robert.moore@intel.com>
Mon, 23 Sep 2013 01:52:45 +0000 (09:52 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 23 Sep 2013 23:46:25 +0000 (01:46 +0200)
The SCI interrupt number is not needed for the SCI handlers, and was
just unnecessary overhead.

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Reviewed-by: Len Brown <len.brown@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpica/evsci.c
include/acpi/actypes.h

index b2f0fb2f57b44f86998d8121ac16b0f27b2bdcc2..94d9ebddf5755031a34b654664b0be6471330662 100644 (file)
@@ -87,9 +87,7 @@ u32 acpi_ev_sci_dispatch(void)
 
                /* Invoke the installed handler (at interrupt level) */
 
-               int_status |= sci_handler->address((u32)acpi_gbl_FADT.
-                                                  sci_interrupt,
-                                                  sci_handler->context);
+               int_status |= sci_handler->address(sci_handler->context);
 
                sci_handler = sci_handler->next;
        }
index 54006720af8e9e03c88ddc91f2fc5a961d728673..f6abf23ad0a71d51df5c86806c1b504b678a4bc1 100644 (file)
@@ -951,7 +951,7 @@ typedef void
  * Various handlers and callback procedures
  */
 typedef
-u32 (*acpi_sci_handler) (u32 interrupt_number, void *context);
+u32 (*acpi_sci_handler) (void *context);
 
 typedef
 void (*acpi_gbl_event_handler) (u32 event_type,