cvs commit: src/sys/i386/include atomic.h

John Baldwin jhb at FreeBSD.org
Thu Nov 11 22:42:26 GMT 2004


jhb         2004-11-11 22:42:25 UTC

  FreeBSD src repository

  Modified files:
    sys/i386/include     atomic.h 
  Log:
  - Place the gcc memory barrier hint in the right place in the 80386 version
    of atomic_store_rel().
  - Use the 80386 versions of atomic_load_acq() and atomic_store_rel() that
    do not use serializing instructions on all UP kernels since a UP machine
    does need to synchronize with other CPUs.  This trims lots of cycles from
    spin locks on UP kernels among other things.
  
  Benchmarked by: rwatson
  
  Revision  Changes    Path
  1.33      +9 -8      src/sys/i386/include/atomic.h


More information about the cvs-src mailing list