diff --git a/sys/amd64/isa/ithread.c b/sys/amd64/isa/ithread.c index 728d75fb0c5e..d9255e1f3c6d 100644 --- a/sys/amd64/isa/ithread.c +++ b/sys/amd64/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; diff --git a/sys/i386/isa/ithread.c b/sys/i386/isa/ithread.c index 728d75fb0c5e..d9255e1f3c6d 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;