diff options
author | Aymeric Wibo <obiwac@FreeBSD.org> | 2025-08-18 14:35:52 +0000 |
---|---|---|
committer | Aymeric Wibo <obiwac@FreeBSD.org> | 2025-08-18 14:44:59 +0000 |
commit | 02a8fadd2c4dc4b78d6d93d9d8b70e9348a6de6d (patch) | |
tree | 9538935ab015fec62a9dc2547f9301f0ad0fcec9 /sys/netinet/tcp_sack.c | |
parent | e687f38a36ceb681ff7fe0668050f95828f73831 (diff) |
Add `acpi_pwr_get_state` as a prerequisite to LPI (low-power idle)
states. Since these states define minimum D-state constraints on other
devices to be able to enter them, it will be necessary to use this
function to check them before attempting to do so.
Aside from that, this function is used to get the initial D-state of a
power consumer when registering it (previously the `ac_state` value
would be set to `ACPI_STATE_UNKNOWN`). It uses the `_PSC` method if
available (older devices), or infers the D-state through the `_PRx`
objects (cached in `ac_prx`) with `acpi_pwr_infer_state` if not.
`acpi_pwr_switch_consumer` now uses this to verify that the D-state of
a power consumer was switched correctly.
Reviewed by: imp, markj, jrm (mentor)
Approved by: markj, jrm (mentor)
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48386
Diffstat (limited to 'sys/netinet/tcp_sack.c')
0 files changed, 0 insertions, 0 deletions