DragonFly BSD
DragonFly commits List (threaded) for 2010-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: kernel - Adjust contention handler


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 27 Aug 2010 22:19:08 -0700 (PDT)

commit b68e846fa236b7b7beeb23a84108fb713272440d
Author: Matthew Dillon <dillon@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]