kernel - Change lwkt_wait_ipiq() to use the TSC
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jun 2013 21:10:48 +0000 (14:10 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 27 Jun 2013 21:10:48 +0000 (14:10 -0700)
commit3ec72a5566c2c0b3400dcef3da3d44ad46d4b291
tree26271fd033acb51e27aa06833d2424ca7223c223
parent036973137c6caa5a32c50e14c81f462069c058ee
kernel - Change lwkt_wait_ipiq() to use the TSC

* lwkt_wait_ipiq() was using a static counter/constant for its failsafe
  panic, which can vary immensly over time and might not be long enough
  for systems running under VMs.

* Change the code to use the TSC api to properly time the failsafe.  It
  will generate warnings each second and panic at 10 seconds if the IPIQ
  fails to drain.

Reported-by: marino
sys/kern/lwkt_ipiq.c