Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2004 03:33:32 +0000 (UTC)
From:      Robert Watson <rwatson@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/random randomdev_soft.c
Message-ID:  <200408110333.i7B3XWaO049406@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rwatson     2004-08-11 03:33:32 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/random       randomdev_soft.c 
  Log:
  Perform a lockless read to test whether an entropy havesting fifo is
  full, avoiding the cost of mutex operations if it is.  We re-test
  once the mutex is acquired to make sure it's still true before doing
  the -modify-write part of the read-modify-write.  Note that due to
  the maximum fifo depth being pretty deep, this is unlikely to improve
  harvesting performance yet.
  
  Approved by:    markm
  
  Revision  Changes    Path
  1.4       +4 -0      src/sys/dev/random/randomdev_soft.c



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