diff options
author | Lv Zheng <lv.zheng@intel.com> | 2016-05-03 04:48:32 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-05-04 18:13:52 -0400 |
commit | a707edebadf1230f202000f29b28b7586ada4aa3 (patch) | |
tree | b6f7e93e1a687a6aa9d0979f78f8cde08a0d5b77 | |
parent | dbee890bf69ad62c021e299e24881fdcd1f2c481 (diff) |
ACPI / osi: Add acpi_osi=!! to allow reverting acpi_osi=!
This patch introduces acpi_osi=!! so that quirks may use it to revert
acpi_osi=!.
Tested-by: Lukas Wunner <lukas@wunner.de>
Tested-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | Documentation/kernel-parameters.txt | 2 | ||||
-rw-r--r-- | drivers/acpi/osl.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 0b3de80ec8f6..c48f387109e8 100644 --- a/Documentation/kernel-parameters.txt +++ b/Documentation/kernel-parameters.txt | |||
@@ -312,6 +312,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted. | |||
312 | acpi_osi=!* # remove all strings | 312 | acpi_osi=!* # remove all strings |
313 | acpi_osi=! # disable all built-in OS vendor | 313 | acpi_osi=! # disable all built-in OS vendor |
314 | strings | 314 | strings |
315 | acpi_osi=!! # enable all built-in OS vendor | ||
316 | strings | ||
315 | acpi_osi= # disable all strings | 317 | acpi_osi= # disable all strings |
316 | 318 | ||
317 | 'acpi_osi=!' can be used in combination with single or | 319 | 'acpi_osi=!' can be used in combination with single or |
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 9f59dd1a0af7..f801b59f2a94 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c | |||
@@ -1763,6 +1763,9 @@ void __init acpi_osi_setup(char *str) | |||
1763 | osi->enable = false; | 1763 | osi->enable = false; |
1764 | } | 1764 | } |
1765 | return; | 1765 | return; |
1766 | } else if (*str == '!') { | ||
1767 | osi_config.default_disabling = 0; | ||
1768 | return; | ||
1766 | } | 1769 | } |
1767 | enable = false; | 1770 | enable = false; |
1768 | } | 1771 | } |