summaryrefslogtreecommitdiff
path: root/include/uapi/linux/virtio_config.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-06-13 10:07:49 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 18:41:52 +0200
commit9c6c4fca640e96b20310a969e9a09ec9ac0eb84c (patch)
tree4f60cdcc263cc2fcfe71286542da2a95b55c2e60 /include/uapi/linux/virtio_config.h
parent56023044b9b78ab995aa7e64faadad2fe85875e6 (diff)
random: account for arch randomness in bits
commit 77fc95f8c0dc9e1f8e620ec14d2fb65028fb7adc upstream. Rather than accounting in bytes and multiplying (shifting), we can just account in bits and avoid the shift. The main motivation for this is there are other patches in flux that expand this code a bit, and avoiding the duplication of "* 8" everywhere makes things a bit clearer. Cc: stable@vger.kernel.org Fixes: 12e45a2a6308 ("random: credit architectural init the exact amount") Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/uapi/linux/virtio_config.h')
0 files changed, 0 insertions, 0 deletions