Merge pull request #1 from farovitus/patch-1

char: random: Fix Deep Sleep issue
This commit is contained in:
BlackMesa 2018-09-08 01:45:16 +02:00 committed by GitHub
commit f586c18ab6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1897,7 +1897,7 @@ void add_hwgenerator_randomness(const char *buffer, size_t count,
* random_write_wakeup_thresh, or when the calling * random_write_wakeup_thresh, or when the calling
* thread is about to terminate. * thread is about to terminate.
*/ */
wait_event_interruptible(random_write_wait, wait_event_freezable(random_write_wait,
kthread_should_stop() || kthread_should_stop() ||
ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits); ENTROPY_BITS(&input_pool) <= random_write_wakeup_bits);
} }