diff options
author | Harald Freudenberger <freude@linux.vnet.ibm.com> | 2017-07-11 09:36:23 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-07-18 12:16:09 +0200 |
commit | 10a515ddb5f19a1ff0b9882c430b4427843169f3 (patch) | |
tree | dd27f8af0c53de1189c738574ff4d702e27e142b /crypto | |
parent | hwrng: use rng source with best quality (diff) | |
download | linux-10a515ddb5f19a1ff0b9882c430b4427843169f3.tar.xz linux-10a515ddb5f19a1ff0b9882c430b4427843169f3.zip |
hwrng: remember rng chosen by user
When a user chooses a rng source via sysfs attribute
this rng should be sticky, even when other sources
with better quality to register. This patch introduces
a simple way to remember the user's choice. This is
reflected by a new sysfs attribute file 'rng_selected'
which shows if the current rng has been chosen by
userspace. The new attribute file shows '1' for user
selected rng and '0' otherwise.
Signed-off-by: Harald Freudenberger <freude@linux.vnet.ibm.com>
Reviewed-by: PrasannaKumar Muralidharan <prasannatsmkumar@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions