]> git.baikalelectronics.ru Git - kernel.git/commit
random: allow fractional bits to be tracked
authorH. Peter Anvin <hpa@zytor.com>
Wed, 11 Sep 2013 03:16:17 +0000 (23:16 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 10 Oct 2013 18:32:14 +0000 (14:32 -0400)
commita7653772191067cd23987a7a50b505fe363f466c
tree4d95a6686ce716f1ca69a7a23120647b1aa6220d
parentc93d0c7d5d79476323fdaa8e2e09aaedcd381dc9
random: allow fractional bits to be tracked

Allow fractional bits of entropy to be tracked by scaling the entropy
counter (fixed point).  This will be used in a subsequent patch that
accounts for entropy lost due to overwrites.

[ Modified by tytso to fix up a few missing places where the
  entropy_count wasn't properly converted from fractional bits to
  bits. ]

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
drivers/char/random.c