]> git.hungrycats.org Git - linux/commitdiff
[ACPI] Linux specific updates from ACPICA 20040326
authorLen Brown <len.brown@intel.com>
Fri, 26 Mar 2004 14:31:19 +0000 (09:31 -0500)
committerLen Brown <lenb@dhcppc3.>
Fri, 26 Mar 2004 14:31:19 +0000 (09:31 -0500)
"acpi_wake_gpes_always_on" boot flag for old GPE behaviour

drivers/acpi/ec.c
drivers/acpi/osl.c

index ee6419591a6f7ad546088e42bcc4b97160d5c0d8..d1d509f2735d02d0654748791e0944828735d58c 100644 (file)
@@ -719,7 +719,7 @@ acpi_ec_start (
         * Install GPE handler
         */
        status = acpi_install_gpe_handler(NULL, ec->gpe_bit,
-               ACPI_EVENT_EDGE_TRIGGERED, &acpi_ec_gpe_handler, ec);
+               ACPI_GPE_EDGE_TRIGGERED, &acpi_ec_gpe_handler, ec);
        if (ACPI_FAILURE(status)) {
                return_VALUE(-ENODEV);
        }
@@ -803,7 +803,7 @@ acpi_ec_ecdt_probe (void)
         * Install GPE handler
         */
        status = acpi_install_gpe_handler(NULL, ec_ecdt->gpe_bit,
-               ACPI_EVENT_EDGE_TRIGGERED, &acpi_ec_gpe_handler,
+               ACPI_GPE_EDGE_TRIGGERED, &acpi_ec_gpe_handler,
                ec_ecdt);
        if (ACPI_FAILURE(status)) {
                goto error;
index 6ec770c0be88c62430c3a05e5460de8f33989672..0e0d1bafc17a59f864e48fa4bdccf97ac9ee7a80 100644 (file)
@@ -1048,3 +1048,24 @@ acpi_serialize_setup(char *str)
 
 __setup("acpi_serialize", acpi_serialize_setup);
 
+/*
+ * Wake and Run-Time GPES are expected to be separate.
+ * We disable wake-GPEs at run-time to prevent spurious
+ * interrupts.
+ *
+ * However, if a system exists that shares Wake and
+ * Run-time events on the same GPE this flag is available
+ * to tell Linux to keep the wake-time GPEs enabled at run-time.
+ */
+int __init
+acpi_wake_gpes_always_on_setup(char *str)
+{
+       printk(KERN_INFO PREFIX "wake GPEs not disabled\n");
+
+       acpi_gbl_leave_wake_gpes_disabled = FALSE;
+
+       return 1;
+}
+
+__setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup);
+