Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 81d0273d authored by Bjorn Helgaas's avatar Bjorn Helgaas Committed by Len Brown
Browse files

ACPI: skip DMI power state check when ACPI disabled



This patch makes acpi_init() exit early when ACPI is disabled.
This skips a DMI check that affects ACPI power management.   The
DMI check prints a notice that is misleading when ACPI is disabled.

Signed-off-by: default avatarBjorn Helgaas <bjorn.helgaas@hp.com>
Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent e60cc7a6
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -869,6 +869,10 @@ static int __init acpi_init(void)
		}
		}
	} else
	} else
		disable_acpi();
		disable_acpi();

	if (acpi_disabled)
		return result;

	/*
	/*
	 * If the laptop falls into the DMI check table, the power state check
	 * If the laptop falls into the DMI check table, the power state check
	 * will be disabled in the course of device power transistion.
	 * will be disabled in the course of device power transistion.