summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/ithread.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/isa/ithread.c')
-rw-r--r--sys/i386/isa/ithread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/ithread.c b/sys/i386/isa/ithread.c
index 728d75f..d9255e1 100644
--- a/sys/i386/isa/ithread.c
+++ b/sys/i386/isa/ithread.c
@@ -97,7 +97,7 @@ sched_ithd(void *cookie)
* If this interrupt is marked as being a source of entropy, use
* the current timestamp to feed entropy to the PRNG.
*/
- if (ir != NULL && (ir->it_flags & IT_ENTROPY)) {
+ if (harvest.interrupt && ir != NULL && (ir->it_flags & IT_ENTROPY)) {
struct int_entropy entropy;
entropy.irq = irq;
OpenPOWER on IntegriCloud