Messages in this thread | | | Date | Sun, 13 Feb 2022 07:55:12 +0100 | From | Dominik Brodowski <> | Subject | Re: [PATCH] random: do not take pool spinlock at boot |
| |
Am Sat, Feb 12, 2022 at 01:28:59AM +0100 schrieb Jason A. Donenfeld: > Since rand_initialize() is run while interrupts are still off and > nothing else is running, we don't need to repeatedly take and release > the pool spinlock, especially in the RDSEED loop. > > Cc: Dominik Brodowski <linux@dominikbrodowski.net> > Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> > --- > Dominik - I'm still a bit unclear about early boot semantics that you > seem to know well. Is this patch correct?
It seems to be.
Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net>
Thanks, Dominik
| |