aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJason A. Donenfeld <[email protected]>2022-11-06 16:02:43 +0100
committerJason A. Donenfeld <[email protected]>2022-11-18 02:18:10 +0100
commitdb516da95ce458f0cab5e7ae2db93fd821484d7d (patch)
tree7025999d032360dfcd0f5dc4c772f5206dff0fd0 /scripts/generate_rust_analyzer.py
parent19258d05b619d26622bdcfa11eca1f457b69e4da (diff)
hw_random: use add_hwgenerator_randomness() for early entropy
Rather than calling add_device_randomness(), the add_early_randomness() function should use add_hwgenerator_randomness(), so that the early entropy can be potentially credited, which allows for the RNG to initialize earlier without having to wait for the kthread to come up. This requires some minor API refactoring, by adding a `sleep_after` parameter to add_hwgenerator_randomness(), so that we don't hit a blocking sleep from add_early_randomness(). Tested-by: AngeloGioacchino Del Regno <[email protected]> Tested-by: Marek Szyprowski <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Dominik Brodowski <[email protected]> Acked-by: Herbert Xu <[email protected]> Signed-off-by: Jason A. Donenfeld <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions