Skip to content

Commit 62f95ae

Browse files
Emantorherbertx
authored andcommitted
hwrng: omap - Set default quality
Newer combinations of the glibc, kernel and openssh can result in long initial startup times on OMAP devices: [ 6.671425] systemd-rc-once[102]: Creating ED25519 key; this may take some time ... [ 142.652491] systemd-rc-once[102]: Creating ED25519 key; done. due to the blocking getrandom(2) system call: [ 142.610335] random: crng init done Set the quality level for the omap hwrng driver allowing the kernel to use the hwrng as an entropy source at boot. Signed-off-by: Rouven Czerwinski <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent f808aa3 commit 62f95ae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/char/hw_random/omap-rng.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ static int omap_rng_probe(struct platform_device *pdev)
443443
priv->rng.read = omap_rng_do_read;
444444
priv->rng.init = omap_rng_init;
445445
priv->rng.cleanup = omap_rng_cleanup;
446+
priv->rng.quality = 900;
446447

447448
priv->rng.priv = (unsigned long)priv;
448449
platform_set_drvdata(pdev, priv);

0 commit comments

Comments
 (0)