mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
Interpret new loader tunable "hw.acpi.verbose" to turn
verbose mode on at boot time.
This commit is contained in:
parent
97af632bcb
commit
498d464fe9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106261
@ -314,7 +314,7 @@ acpi_attach(device_t dev)
|
||||
ACPI_STATUS status;
|
||||
int error;
|
||||
UINT32 flags;
|
||||
|
||||
char *env;
|
||||
#ifdef ACPI_DEBUGGER
|
||||
char *debugpoint;
|
||||
#endif
|
||||
@ -431,7 +431,11 @@ acpi_attach(device_t dev)
|
||||
sc->acpi_s4bios = 1;
|
||||
if (bootverbose)
|
||||
sc->acpi_verbose = 1;
|
||||
|
||||
if ((env = getenv("hw.acpi.verbose")) && strcmp(env, "0")) {
|
||||
sc->acpi_verbose = 1;
|
||||
freeenv(env);
|
||||
}
|
||||
|
||||
/*
|
||||
* Dispatch the default sleep state to devices.
|
||||
* TBD: should be configured from userland policy manager.
|
||||
|
Loading…
Reference in New Issue
Block a user