summaryrefslogtreecommitdiffstats
path: root/sys/dev/amd
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-03-01 17:09:09 +0000
committermarkm <markm@FreeBSD.org>2001-03-01 17:09:09 +0000
commit36b9aabb472f862e3e5719891d140e7c7ce6c69f (patch)
tree3cdbc14d8bfea52310bf35ca4377f9292f0d8657 /sys/dev/amd
parent10e65c206e151ea487810e10f4c04c8d94dc79d0 (diff)
downloadFreeBSD-src-36b9aabb472f862e3e5719891d140e7c7ce6c69f.zip
FreeBSD-src-36b9aabb472f862e3e5719891d140e7c7ce6c69f.tar.gz
Turn on interrupt-entropy harvesting for all/any mass storage devices
I could find. I have no doubt missed a couple. Interrupt entropy harvesting is still conditional on the kern.random.sys.harvest_interrupt sysctl.
Diffstat (limited to 'sys/dev/amd')
-rw-r--r--sys/dev/amd/amd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c
index 8bd550b..302691d 100644
--- a/sys/dev/amd/amd.c
+++ b/sys/dev/amd/amd.c
@@ -2372,7 +2372,8 @@ amd_attach(device_t dev)
irqres = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1,
RF_SHAREABLE | RF_ACTIVE);
if (irqres == NULL ||
- bus_setup_intr(dev, irqres, INTR_TYPE_CAM, amd_intr, amd, &ih)) {
+ bus_setup_intr(dev, irqres, INTR_TYPE_CAM | INTR_ENTROPY,
+ amd_intr, amd, &ih)) {
if (bootverbose)
printf("amd%d: unable to register interrupt handler!\n",
unit);
OpenPOWER on IntegriCloud