summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHarald Freudenberger <freude@linux.vnet.ibm.com>2017-07-11 09:36:23 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-18 12:16:09 +0200
commit10a515ddb5f19a1ff0b9882c430b4427843169f3 (patch)
treedd27f8af0c53de1189c738574ff4d702e27e142b /crypto
parenthwrng: use rng source with best quality (diff)
downloadlinux-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