cvs commit: src/sys/dev/random randomdev_soft.c
Robert Watson
rwatson at FreeBSD.org
Tue Aug 10 20:33:33 PDT 2004
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
More information about the cvs-src
mailing list