diff options
author | Luming Yu <luming.yu@intel.com> | 2005-03-18 18:03:45 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2005-07-11 23:27:04 -0400 |
commit | fb9802fa59b196d7f90bb3c2e33c555c6bdc4c54 (patch) | |
tree | aca6fd906629c6da124a73b43e6f6c50f81b90b4 /drivers/acpi/osl.c | |
parent | d58da590451cf6ae75379a2ebf96d3afb8d810d8 (diff) |
[ACPI] generic Hot Key support
See Documentation/acpi-hotkey.txt
Use cmdline "acpi_specific_hotkey" to enable
legacy platform specific drivers.
http://bugzilla.kernel.org/show_bug.cgi?id=3887
Signed-off-by: Luming Yu <luming.yu@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/osl.c')
-rw-r--r-- | drivers/acpi/osl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 5a9128de6226..bdd9f37f8101 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -71,6 +71,9 @@ EXPORT_SYMBOL(acpi_in_debugger); | |||
71 | extern char line_buf[80]; | 71 | extern char line_buf[80]; |
72 | #endif /*ENABLE_DEBUGGER*/ | 72 | #endif /*ENABLE_DEBUGGER*/ |
73 | 73 | ||
74 | int acpi_specific_hotkey_enabled; | ||
75 | EXPORT_SYMBOL(acpi_specific_hotkey_enabled); | ||
76 | |||
74 | static unsigned int acpi_irq_irq; | 77 | static unsigned int acpi_irq_irq; |
75 | static acpi_osd_handler acpi_irq_handler; | 78 | static acpi_osd_handler acpi_irq_handler; |
76 | static void *acpi_irq_context; | 79 | static void *acpi_irq_context; |
@@ -1152,6 +1155,15 @@ acpi_wake_gpes_always_on_setup(char *str) | |||
1152 | 1155 | ||
1153 | __setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup); | 1156 | __setup("acpi_wake_gpes_always_on", acpi_wake_gpes_always_on_setup); |
1154 | 1157 | ||
1158 | int __init | ||
1159 | acpi_hotkey_setup(char *str) | ||
1160 | { | ||
1161 | acpi_specific_hotkey_enabled = TRUE; | ||
1162 | return 1; | ||
1163 | } | ||
1164 | |||
1165 | __setup("acpi_specific_hotkey", acpi_hotkey_setup); | ||
1166 | |||
1155 | /* | 1167 | /* |
1156 | * max_cstate is defined in the base kernel so modules can | 1168 | * max_cstate is defined in the base kernel so modules can |
1157 | * change it w/o depending on the state of the processor module. | 1169 | * change it w/o depending on the state of the processor module. |