Skip to content

Commit a707ede

Browse files
Lv Zhengrafaeljw
authored andcommitted
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 <[email protected]> Tested-by: Chen Yu <[email protected]> Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent dbee890 commit a707ede

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Documentation/kernel-parameters.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
312312
acpi_osi=!* # remove all strings
313313
acpi_osi=! # disable all built-in OS vendor
314314
strings
315+
acpi_osi=!! # enable all built-in OS vendor
316+
strings
315317
acpi_osi= # disable all strings
316318

317319
'acpi_osi=!' can be used in combination with single or

drivers/acpi/osl.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,9 @@ void __init acpi_osi_setup(char *str)
17631763
osi->enable = false;
17641764
}
17651765
return;
1766+
} else if (*str == '!') {
1767+
osi_config.default_disabling = 0;
1768+
return;
17661769
}
17671770
enable = false;
17681771
}

0 commit comments

Comments
 (0)