• 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
..
Kconfig Loading commit data...
Makefile Loading commit data...
amd-rng.c Loading commit data...
atmel-rng.c Loading commit data...
bcm2835-rng.c Loading commit data...
bcm63xx-rng.c Loading commit data...
cavium-rng-vf.c Loading commit data...
cavium-rng.c Loading commit data...
core.c Loading commit data...
exynos-rng.c Loading commit data...
geode-rng.c Loading commit data...
hisi-rng.c Loading commit data...
intel-rng.c Loading commit data...
iproc-rng200.c Loading commit data...
ixp4xx-rng.c Loading commit data...
meson-rng.c Loading commit data...
msm-rng.c Loading commit data...
mxc-rnga.c Loading commit data...
n2-asm.S Loading commit data...
n2-drv.c Loading commit data...
n2rng.h Loading commit data...
nomadik-rng.c Loading commit data...
octeon-rng.c Loading commit data...
omap-rng.c Loading commit data...
omap3-rom-rng.c Loading commit data...
pasemi-rng.c Loading commit data...
pic32-rng.c Loading commit data...
powernv-rng.c Loading commit data...
pseries-rng.c Loading commit data...
st-rng.c Loading commit data...
stm32-rng.c Loading commit data...
timeriomem-rng.c Loading commit data...
tpm-rng.c Loading commit data...
tx4939-rng.c Loading commit data...
via-rng.c Loading commit data...
virtio-rng.c Loading commit data...
xgene-rng.c Loading commit data...