[BACK]Return to kern_mutex.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/kern_mutex.c between version 1.21.2.3 and 1.21.2.4

version 1.21.2.3, 2007/12/27 00:46:00 version 1.21.2.4, 2008/02/18 21:06:46
Line 1 
Line 1 
 /*      $NetBSD$        */  /*      $NetBSD$        */
   
 /*-  /*-
  * Copyright (c) 2002, 2006, 2007 The NetBSD Foundation, Inc.   * Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
  * All rights reserved.   * All rights reserved.
  *   *
  * This code is derived from software contributed to The NetBSD Foundation   * This code is derived from software contributed to The NetBSD Foundation
Line 61  __KERNEL_RCSID(0, "$NetBSD$");
Line 61  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/kernel.h>  #include <sys/kernel.h>
 #include <sys/atomic.h>  #include <sys/atomic.h>
 #include <sys/intr.h>  #include <sys/intr.h>
   #include <sys/lock.h>
   
 #include <dev/lockstat.h>  #include <dev/lockstat.h>
   
   #include <machine/lock.h>
   
 /*  /*
  * When not running a debug kernel, spin mutexes are not much   * When not running a debug kernel, spin mutexes are not much
  * more than an splraiseipl() and splx() pair.   * more than an splraiseipl() and splx() pair.
Line 506  mutex_vector_enter(kmutex_t *mtx)
Line 509  mutex_vector_enter(kmutex_t *mtx)
         MUTEX_ASSERT(mtx, curthread != 0);          MUTEX_ASSERT(mtx, curthread != 0);
         MUTEX_WANTLOCK(mtx);          MUTEX_WANTLOCK(mtx);
   
 #ifdef LOCKDEBUG  
         if (panicstr == NULL) {          if (panicstr == NULL) {
                 simple_lock_only_held(NULL, "mutex_enter");  
 #ifdef MULTIPROCESSOR  
                 LOCKDEBUG_BARRIER(&kernel_lock, 1);                  LOCKDEBUG_BARRIER(&kernel_lock, 1);
 #else  
                 LOCKDEBUG_BARRIER(NULL, 1);  
 #endif  
         }          }
 #endif  
   
         LOCKSTAT_ENTER(lsflag);          LOCKSTAT_ENTER(lsflag);
   

Legend:
Removed from v.1.21.2.3  
changed lines
  Added in v.1.21.2.4

CVSweb <webmaster@jp.NetBSD.org>