HomeFreeBSD

acpi_cpu: Reduce BUS_MASTER_RLD manipulations

Description

acpi_cpu: Reduce BUS_MASTER_RLD manipulations

Instead of setting and clearing BUS_MASTER_RLD register on every C3
state enter/exit, set it only once if the system supports C3 state
and we are going to "disable" bus master arbitration while in it.

This is what Linux does for the past 14 years, and for even more time
this register is not implemented in a relevant hardware. Same time
since this is only a single bit in a bigger register, ACPI has to
do take a global lock and do read-modify-write for it, that is too
expensive, saved only by C3 not entered frequently, but enough to be
seen in idle system CPU profiles.

MFC after: 1 month

Details

Provenance
mavAuthored on Dec 26 2023, 2:19 AM
Parents
rG6adf554abd1c: vmm: Fix handling of errors from subyte()
Branches
Unknown
Tags
Unknown