diff options
author | markm <markm@FreeBSD.org> | 2001-02-18 17:47:55 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2001-02-18 17:47:55 +0000 |
commit | 23c92dbfc2ebcf8ce3d18a56d6bda8a27aa2cee7 (patch) | |
tree | 18c99547af1501fff025f8400cc171b435ce11de | |
parent | 886c7bc57d985e6b8c0412fdf450e616fe405262 (diff) | |
download | FreeBSD-src-23c92dbfc2ebcf8ce3d18a56d6bda8a27aa2cee7.zip FreeBSD-src-23c92dbfc2ebcf8ce3d18a56d6bda8a27aa2cee7.tar.gz |
Allow the superuser to prefent all interrupt harvesting on
her system.
-rw-r--r-- | sys/amd64/isa/ithread.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/ithread.c | 2 |
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; |