char: random: Fix Deep Sleep issue

Device has been reported to not enter Deep Sleep state at all due to upstreaming, turned out it's caused by a change in f41fc0bfed "random: initialize the non-blocking pool via add_hwgenerator_randomness()"

Fix this issue by choosing 'wait_event_freezable' instead of 'wait_event_interruptible'
This commit is contained in:
farovitus 2018-09-07 20:45:55 +03:00 committed by GitHub
parent 2f64b939b8
commit 3e0b8c10d0
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);
} }