summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-02-18 17:47:55 +0000
committermarkm <markm@FreeBSD.org>2001-02-18 17:47:55 +0000
commit23c92dbfc2ebcf8ce3d18a56d6bda8a27aa2cee7 (patch)
tree18c99547af1501fff025f8400cc171b435ce11de
parent886c7bc57d985e6b8c0412fdf450e616fe405262 (diff)
downloadFreeBSD-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.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