Unverified Commit 30d72ee3 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 9667e28e 518f9e25
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1100,7 +1100,8 @@ void add_interrupt_randomness(int irq)
	if (new_count & MIX_INFLIGHT)
		return;

	if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ))
	if (new_count < 1024 && !time_is_before_jiffies(fast_pool->last + HZ) &&
			crng_ready())
		return;

	fast_pool->count |= MIX_INFLIGHT;