[PATCH] ACPI CMOS region support rev. 5

Jung-uk Kim jkim at FreeBSD.org
Wed Mar 18 17:35:24 UTC 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 03/17/2015 08:28, Ian Smith wrote:
> I still wonder if there isn't a global acpi_loaded_and_running
> variable so you could avoid even attempting ACPI init calls,
> perhaps making this not so dependent on ACPI, at least at runtime.

For runtime, power_pm_get_type() is what you looking for.  For example,

switch (power_pm_get_type()) {
case POWER_PM_TYPE_ACPI:	/* Do something specific to ACPI. */
case POWER_PM_TYPE_APM:		/* Do something specific to APM. */
default:			/* Do something without PM. */
}

> But perhaps jkim's concern is more regarding building on platforms
> not supporting ACPI at all? Is that the (only?) issue with this on
> ARM?

sys/x86/isa/atrtc.c is only for x86 (excluding pc98).  I am only
concerned about ACPI-less i386 kernel at this point.

Jung-uk Kim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJVCbdVAAoJEHyflib82/FGK04H/2e/DVefzoorkEuW5sxgHqGg
XGFB21wLxP4bfnkkGlTfYrEPkdB53zW6qez2nUv+zA4aTy/BTpmRN0KAhwMRCkJj
QjM757IoQr+QyWQhU62NOsu7Ox86MI6RBrPssURuwib8HWJbIUPDKKYmK+sXI7Bq
UmlBJeiK0BhzCQ7l0tIaR6VFlQSxMQC/x/fwkHI9hKPyKwq8ACeqQ2ZI05v6ZQzo
IIfVU0LLz62kDoJDicaRNfJbGtRPOvx4Nnm1RE8wVtaqlwQYrffp6QpHaRfXHEos
QwWEWXrMFfjQtCH+KCrzfZsCQD1rTe+eDb0tFD315PbpvEs6yG6VlBxf4pUJRAU=
=YDkP
-----END PGP SIGNATURE-----


More information about the freebsd-acpi mailing list