summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/amd64/isa/ithread.c2
-rw-r--r--sys/i386/isa/ithread.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/isa/ithread.c b/sys/amd64/isa/ithread.c
index 728d75f..d9255e1 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 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