Re: [PATCH v2 4/4] random: Add arch_has_random[_seed]()

H. Peter Anvin
2014-03-18T18:56:07Z

On 03/17/2014 08:44 PM, Benjamin Herrenschmidt wrote:
> On Mon, 2014-03-17 at 16:36 -0700, H. Peter Anvin wrote:
>> Add predicate functions for having arch_get_random[_seed]*(). The
>> only current use is to avoid the loop in arch_random_refill() when
>> arch_get_random_seed_long() is unavailable.
>
> Paul, I think our HW rng on P7+ and later would qualify no ?
>
> Cheers,
> Ben.

Just to be clear: since I don't know the parameters of the PowerPC hwrng
I just put in the stub functions, leaving it up to you to analyze if it
is suitable and analyze it. Do let me know if I can be of any
assistance, of course.

-hpa