Re: [PATCH] hw_random/timeriomem-rng: Fix cooldown period calculation

2021-02-09 Thread Herbert Xu
On Mon, Feb 01, 2021 at 04:14:59PM +0100, Jan Henrik Weinstock wrote: > Ensure cooldown period tolerance of 1% is actually accounted for. > > Signed-off-by: Jan Henrik Weinstock > --- > > Before patch, if period_us was less than 100us, no extra sleep time was > added. If it was more than 100us,

[PATCH] hw_random/timeriomem-rng: Fix cooldown period calculation

2021-02-01 Thread Jan Henrik Weinstock
Ensure cooldown period tolerance of 1% is actually accounted for. Signed-off-by: Jan Henrik Weinstock --- Before patch, if period_us was less than 100us, no extra sleep time was added. If it was more than 100us, only 1us extra time (and not 1%) is slept.