aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2022-01-28 23:44:03 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2022-02-04 19:22:32 +0100
commit042e293e16e3aa9794ce60c29f5b7b0c8170f933 (patch)
treeb0f1c07c6222f4aa408dfa7aff26fbefb0bdc2db /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c
parentc321e907aa4803d562d6e70ebed9444ad082f953 (diff)
downloadlinux-042e293e16e3aa9794ce60c29f5b7b0c8170f933.tar.gz
linux-042e293e16e3aa9794ce60c29f5b7b0c8170f933.tar.bz2
linux-042e293e16e3aa9794ce60c29f5b7b0c8170f933.zip
random: wake up /dev/random writers after zap
When account() is called, and the amount of entropy dips below random_write_wakeup_bits, we wake up the random writers, so that they can write some more in. However, the RNDZAPENTCNT/RNDCLEARPOOL ioctl sets the entropy count to zero -- a potential reduction just like account() -- but does not unblock writers. This commit adds the missing logic to that ioctl to unblock waiting writers. Reviewed-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions