kernel - Adjust contention handler
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Aug 2010 02:39:42 +0000 (19:39 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Aug 2010 02:39:42 +0000 (19:39 -0700)
commitb68e846fa236b7b7beeb23a84108fb713272440d
tree14cd5e58a4e4f64badb0a8ec71fdee2393f0e42d
parent12586b823bd2bb1e45d057286b2912e27a33bacb
kernel - Adjust contention handler

* Simplify handle_cpu_contention_mask() a little.  For vkernels we
  call pthread_yield().

* Just call cpu_pause() in cpu_spinlock_contested().  Don't do anything
  fancier, the routine is called as part of the exponential backoff
  code.
sys/platform/pc32/i386/machdep.c
sys/platform/pc64/x86_64/machdep.c
sys/platform/vkernel/i386/cpu_regs.c
sys/platform/vkernel64/x86_64/cpu_regs.c