mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-02-15 04:42:02 +00:00
24 lines
781 B
Diff
24 lines
781 B
Diff
From 0d41e5de102d1a77fb0e027c2598258c4e220ec0 Mon Sep 17 00:00:00 2001
|
|
From: Phil Elwell <phil@raspberrypi.com>
|
|
Date: Wed, 22 Mar 2023 15:47:30 +0000
|
|
Subject: [PATCH] Revert "Revert "hwrng: bcm2835 - use hwrng_msleep() instead
|
|
of cpu_relax()""
|
|
|
|
This reverts commit a9d98e9f7d84d7d66b02fdae9c37b19cd516c894.
|
|
|
|
Signed-off-by: Phil Elwell <phil@raspberrypi.com>
|
|
---
|
|
drivers/char/hw_random/bcm2835-rng.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/drivers/char/hw_random/bcm2835-rng.c
|
|
+++ b/drivers/char/hw_random/bcm2835-rng.c
|
|
@@ -71,7 +71,7 @@ static int bcm2835_rng_read(struct hwrng
|
|
while ((rng_readl(priv, RNG_STATUS) >> 24) == 0) {
|
|
if (!wait)
|
|
return 0;
|
|
- cpu_relax();
|
|
+ hwrng_msleep(rng, 1000);
|
|
}
|
|
|
|
num_words = rng_readl(priv, RNG_STATUS) >> 24;
|