patch-2.4.26 linux-2.4.26/drivers/acpi/osl.c
Next file: linux-2.4.26/drivers/acpi/parser/psargs.c
Previous file: linux-2.4.26/drivers/acpi/namespace/nsxfname.c
Back to the patch index
Back to the overall index
- Lines: 61
- Date:
2004-04-14 06:05:29.000000000 -0700
- Orig file:
linux-2.4.25/drivers/acpi/osl.c
- Orig date:
2004-02-18 05:36:31.000000000 -0800
diff -urN linux-2.4.25/drivers/acpi/osl.c linux-2.4.26/drivers/acpi/osl.c
@@ -1021,3 +1021,60 @@
}
__setup("acpi_os_name=", acpi_os_name_setup);
+
+/*
+ * _OSI control
+ * empty string disables _OSI
+ * TBD additional string adds to _OSI
+ */
+int __init
+acpi_osi_setup(char *str)
+{
+ if (str == NULL || *str == '\0') {
+ printk(KERN_INFO PREFIX "_OSI method disabled\n");
+ acpi_gbl_create_osi_method = FALSE;
+ } else
+ {
+ /* TBD */
+ printk(KERN_ERR PREFIX "_OSI additional string ignored -- %s\n", str);
+ }
+
+ return 1;
+}
+
+__setup("acpi_osi=", acpi_osi_setup);
+
+/* enable serialization to combat AE_ALREADY_EXISTS errors */
+int __init
+acpi_serialize_setup(char *str)
+{
+ printk(KERN_INFO PREFIX "serialize enabled\n");
+
+ acpi_gbl_all_methods_serialized = TRUE;
+
+ return 1;
+}
+
+__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);
+
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)