aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2021-03-08 23:43:47 +0000
committerAlexander Motin <mav@FreeBSD.org>2021-03-08 23:43:47 +0000
commit075e4807df3e6b0d9196d56e4dbc33765d57e1f8 (patch)
treea0f44ee83880d7100beb3e7b140a0a8fe2a54bdf /sbin
parent455219675dbd61010e180cacdfed51e7e34111e1 (diff)
downloadsrc-075e4807df3e6b0d9196d56e4dbc33765d57e1f8.tar.gz
src-075e4807df3e6b0d9196d56e4dbc33765d57e1f8.zip
Do not read timer extra time when MWAIT is used.
When we enter C2+ state via memory read, it may take chipset some time to stop CPU. Extra register read covers that time. But MWAIT makes CPU stop immediately, so we don't need to waste time after wakeup with interrupts still disabled, increasing latency. On my system it reduces ping localhost latency, waking up all CPUs once a second, from 277us to 242us. MFC after: 1 month
Diffstat (limited to 'sbin')
0 files changed, 0 insertions, 0 deletions