diff options
author | Andy Lutomirski <luto@kernel.org> | 2019-12-23 11:20:44 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-01-08 00:07:00 +0300 |
commit | 4c8d062186d9923c09488716b2fb1b829b5b8006 (patch) | |
tree | 078e488cb4c2ad59d6cf3b66e175b3c928cd6dfe /drivers/char | |
parent | 1b710b1b10eff9d46666064ea25f079f70bc67a8 (diff) | |
download | linux-4c8d062186d9923c09488716b2fb1b829b5b8006.tar.xz |
random: Don't wake crng_init_wait when crng_init == 1
crng_init_wait is only used to wayt for crng_init to be set to 2, so
there's no point to waking it when crng_init is set to 1. Remove the
unnecessary wake_up_interruptible() call.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Link: https://lore.kernel.org/r/6fbc0bfcbfc1fa2c76fd574f5b6f552b11be7fde.1577088521.git.luto@kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/random.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c index ea1973d35843..502e37141c72 100644 --- a/drivers/char/random.c +++ b/drivers/char/random.c @@ -946,7 +946,6 @@ static int crng_fast_load(const char *cp, size_t len) if (crng_init_cnt >= CRNG_INIT_CNT_THRESH) { invalidate_batched_entropy(); crng_init = 1; - wake_up_interruptible(&crng_init_wait); pr_notice("random: fast init done\n"); } return 1; |