aboutsummaryrefslogtreecommitdiff
path: root/sbin/camcontrol
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2023-12-26 02:19:28 +0000
committerAlexander Motin <mav@FreeBSD.org>2023-12-26 02:43:20 +0000
commit5bc10feacc9d81e3bba9d28734a85e996682b408 (patch)
tree6624ee3b08276e91a0552cab50aa5561831f4536 /sbin/camcontrol
parent6adf554abd1c848d2c9ab7ea8a7fb7dd20a0c186 (diff)
downloadsrc-5bc10feacc9d81e3bba9d28734a85e996682b408.tar.gz
src-5bc10feacc9d81e3bba9d28734a85e996682b408.zip
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
Diffstat (limited to 'sbin/camcontrol')
0 files changed, 0 insertions, 0 deletions