]> git.ipfire.org Git - thirdparty/rng-tools.git/commit
rngd_linux: Modify write_wakeup_threshold to the fill threshold
authorH. Peter Anvin <hpa@linux.intel.com>
Mon, 30 Jul 2012 21:42:36 +0000 (14:42 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Tue, 31 Jul 2012 19:32:58 +0000 (15:32 -0400)
commit870f0d5d2f06d778a49e35d3a5f55183e5c9b9c0
treeef64fe562cb09af6f91b3478329645d6f707ac04
parent593a93021566a41546b433bbb5d4eb66302c5eb3
rngd_linux: Modify write_wakeup_threshold to the fill threshold

The kernel.random.write_wakeup_threshold sysctl needs to be set to the
point where we want poll() on the random device to wake up.  This
replaces the level check in ioctl() used during polling.

Set it by default to 3/4 to the value of kernel.random.poolsize.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
rngd.c
rngd_linux.c
rngd_linux.h