git: kernel - Adjust contention handler

Matthew Dillon dillon at crater.dragonflybsd.org
Fri Aug 27 22:20:44 PDT 2010


commit b68e846fa236b7b7beeb23a84108fb713272440d
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Fri Aug 27 19:39:42 2010 -0700

    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.

Summary of changes:
 sys/platform/pc32/i386/machdep.c         |    4 +---
 sys/platform/pc64/x86_64/machdep.c       |    7 ++++++-
 sys/platform/vkernel/i386/cpu_regs.c     |   12 +++---------
 sys/platform/vkernel64/x86_64/cpu_regs.c |   11 ++++-------
 4 files changed, 14 insertions(+), 20 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b68e846fa236b7b7beeb23a84108fb713272440d


-- 
DragonFly BSD source repository





More information about the Commits mailing list