]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r313447:
authorjtl <jtl@FreeBSD.org>
Fri, 20 Apr 2018 15:48:50 +0000 (15:48 +0000)
committerjtl <jtl@FreeBSD.org>
Fri, 20 Apr 2018 15:48:50 +0000 (15:48 +0000)
commitb7da047215401d2fad18fb0c486cfc5ac5b3d77f
tree0bde6e7b4d83ba485e66fcf6800be8bda7d9bafd
parente1c59d7d7bae62cb0052817ec9ed5315fdb5c502
MFC r313447:
  Ensure the idle thread's loop services interrupts in a timely way when
  using the ACPI C1/mwait sleep method.

  Previously, the mwait instruction would return when an interrupt was
  pending; however, the idle loop did not actually enable interrupts when
  this occurred. This led to a situation where the idle loop could quickly
  spin through the C1/mwait sleep method a number of times when an interrupt
  was pending. (Eventually, the situation corrected itself when something
  other than an interrupt triggered the idle loop to either enable
  interrupts or schedule another thread.)

Sponsored by: Netflix, Inc.
sys/dev/acpica/acpi_cpu.c
sys/x86/x86/cpu_machdep.c