Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Aug 2004 20:18:45 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/kern kern_mutex.c src/sys/sys mutex.h
Message-ID:  <200408042018.i74KIjUa038471@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2004-08-04 20:18:45 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c 
    sys/sys              mutex.h 
  Log:
  Cache the value of curthread in the _get_sleep_lock() and _get_spin_lock()
  macros and pass the value to the associated _mtx_*() functions to avoid
  more curthread dereferences in the function implementations.  This provided
  a very modest perf improvement in some benchmarks.
  
  Suggested by:   rwatson
  Tested by:      scottl
  
  Revision  Changes    Path
  1.147     +5 -4      src/sys/kern/kern_mutex.c
  1.73      +15 -9     src/sys/sys/mutex.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200408042018.i74KIjUa038471>