• Rick Altherr's avatar
    hwrng: timeriomem - Improve performance for sub-jiffie update periods · ca3bff70
    Rick Altherr authored
    Some hardware RNGs provide a single register for obtaining random data.
    Instead of signaling when new data is available, the reader must wait a
    fixed amount of time between reads for new data to be generated.
    timeriomem_rng implements this scheme with the period specified in
    platform data or device tree.  While the period is specified in
    microseconds, the implementation used a standard timer which has a
    minimum delay of 1 jiffie and caused a significant bottleneck for
    devices that can update at 1us.  By switching to an hrtimer, 1us periods
    now only delay at most 2us per read.
    Signed-off-by: default avatarRick Altherr <raltherr@google.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    ca3bff70
Name
Last commit
Last update
Documentation Loading commit data...
arch Loading commit data...
block Loading commit data...
certs Loading commit data...
crypto Loading commit data...
drivers Loading commit data...
firmware Loading commit data...
fs Loading commit data...
include Loading commit data...
init Loading commit data...
ipc Loading commit data...
kernel Loading commit data...
lib Loading commit data...
mm Loading commit data...
net Loading commit data...
samples Loading commit data...
scripts Loading commit data...
security Loading commit data...
sound Loading commit data...
tools Loading commit data...
usr Loading commit data...
virt Loading commit data...
.cocciconfig Loading commit data...
.get_maintainer.ignore Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
COPYING Loading commit data...
CREDITS Loading commit data...
Kbuild Loading commit data...
Kconfig Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README Loading commit data...