Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 367568
b: refs/heads/master
c: c39660b
h: refs/heads/master
v: v3
  • Loading branch information
Bob Moore authored and Rafael J. Wysocki committed Mar 11, 2013
1 parent 1357176 commit b972fde
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f1778eb1ab3e3ef90826b6b6b0ad7fbafa46308b
refs/heads/master: c39660b232c5e4aee3cded5a02d28e71ca447fb8
12 changes: 12 additions & 0 deletions trunk/drivers/acpi/acpica/evxfevnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ acpi_status acpi_enable(void)
return_ACPI_STATUS(AE_NO_ACPI_TABLES);
}

/* If the Hardware Reduced flag is set, machine is always in acpi mode */

if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}

/* Check current mode */

if (acpi_hw_get_mode() == ACPI_SYS_MODE_ACPI) {
Expand Down Expand Up @@ -126,6 +132,12 @@ acpi_status acpi_disable(void)

ACPI_FUNCTION_TRACE(acpi_disable);

/* If the Hardware Reduced flag is set, machine is always in acpi mode */

if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}

if (acpi_hw_get_mode() == ACPI_SYS_MODE_LEGACY) {
ACPI_DEBUG_PRINT((ACPI_DB_INIT,
"System is already in legacy (non-ACPI) mode\n"));
Expand Down
12 changes: 12 additions & 0 deletions trunk/drivers/acpi/acpica/hwacpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ acpi_status acpi_hw_set_mode(u32 mode)

ACPI_FUNCTION_TRACE(hw_set_mode);

/* If the Hardware Reduced flag is set, machine is always in acpi mode */

if (acpi_gbl_reduced_hardware) {
return_ACPI_STATUS(AE_OK);
}

/*
* ACPI 2.0 clarified that if SMI_CMD in FADT is zero,
* system does not support mode transition.
Expand Down Expand Up @@ -146,6 +152,12 @@ u32 acpi_hw_get_mode(void)

ACPI_FUNCTION_TRACE(hw_get_mode);

/* If the Hardware Reduced flag is set, machine is always in acpi mode */

if (acpi_gbl_reduced_hardware) {
return_VALUE(ACPI_SYS_MODE_ACPI);
}

/*
* ACPI 2.0 clarified that if SMI_CMD in FADT is zero,
* system does not support mode transition.
Expand Down

0 comments on commit b972fde

Please sign in to comment.