summaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/tbutils.c
diff options
context:
space:
mode:
authorBob Moore <robert.moore@intel.com>2011-11-16 10:57:28 +0800
committerLen Brown <len.brown@intel.com>2012-01-17 03:36:28 -0500
commit22e5b40ab21fcac21db0ff25fbb844ffecc73a4a (patch)
tree6fe339a8c410d2f8f2a0f844c976046d3be47e17 /drivers/acpi/acpica/tbutils.c
parent2355e10f07b2c550c671f98b68aedf323c299aeb (diff)
downloadlinux-22e5b40ab21fcac21db0ff25fbb844ffecc73a4a.tar.gz
linux-22e5b40ab21fcac21db0ff25fbb844ffecc73a4a.tar.bz2
linux-22e5b40ab21fcac21db0ff25fbb844ffecc73a4a.zip
ACPI 5.0: Implement hardware-reduced option
If HW-reduced flag is set in the FADT, do not attempt to access or initialize any ACPI hardware, including SCI and global lock. No FACS will be present. Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Lin Ming <ming.m.lin@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/tbutils.c')
-rw-r--r--drivers/acpi/acpica/tbutils.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/tbutils.c b/drivers/acpi/acpica/tbutils.c
index 0f2d395feaba..da56a1908966 100644
--- a/drivers/acpi/acpica/tbutils.c
+++ b/drivers/acpi/acpica/tbutils.c
@@ -135,6 +135,13 @@ acpi_status acpi_tb_initialize_facs(void)
{
acpi_status status;
+ /* If Hardware Reduced flag is set, there is no FACS */
+
+ if (acpi_gbl_reduced_hardware) {
+ acpi_gbl_FACS = NULL;
+ return (AE_OK);
+ }
+
status = acpi_get_table_by_index(ACPI_TABLE_INDEX_FACS,
ACPI_CAST_INDIRECT_PTR(struct
acpi_table_header,