git: kernel - Change lwkt_wait_ipiq() to use the TSC

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Jun 27 14:12:34 PDT 2013


commit 3ec72a5566c2c0b3400dcef3da3d44ad46d4b291
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Jun 27 14:10:48 2013 -0700

    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

Summary of changes:
 sys/kern/lwkt_ipiq.c | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3ec72a5566c2c0b3400dcef3da3d44ad46d4b291


-- 
DragonFly BSD source repository


More information about the Commits mailing list