aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/cmd/lockstat/(public-mirror)
diff options
context:
space:
mode:
authorAymeric Wibo <obiwac@FreeBSD.org>2025-08-18 14:00:59 +0000
committerAymeric Wibo <obiwac@FreeBSD.org>2025-08-18 14:01:06 +0000
commita13f28d57ecfd136ce73493659c28a47fa1a4b9f (patch)
tree8ae3040f7930e87ca730b9889b83d48feb180277 /cddl/contrib/opensolaris/cmd/lockstat/(public-mirror)
parent39dbadb7a410f3955540041848d669264266e552 (diff)
acpi_powerres: Fix turning off power resources on first D-state switchHEADmain
The power resource dependencies for each `_PRx` object are discovered and cached in `ac_prx` on the power consumer struct (`struct acpi_powerconsumer`) when a power consumer is registered. This is done in `acpi_pwr_get_power_resources`. ACPI guarantees these `_PRx` objects will evaluate to the same thing each time they are called. This discovery process also registers those power resources, which were previously only registered when they were referenced by the relevant `_PRx` object for the target D-state when switching. This meant that the first D-state switch for a power consumer would not turn off any power resources as they wouldn't have been registered yet. This change fixes this. `ac_prx` will be used by subsequent patches. Reviewed by: markj, imp, jrm (mentor) Approved by: markj, jrm (mentor) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D48385
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/lockstat/(public-mirror)')
0 files changed, 0 insertions, 0 deletions