Allow the superuser to prefent all interrupt harvesting on

her system.
This commit is contained in:
Mark Murray 2001-02-18 17:47:55 +00:00
parent 14636c3b51
commit 2564fe499d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;