Fixed setting up an interrupt using the new filter method: INTR_FAST doesn't

have to be set in this case.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23001 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-11-26 21:47:22 +00:00
parent d0007186e5
commit da744139fa
1 changed files with 8 additions and 11 deletions

View File

@ -296,18 +296,15 @@ bus_setup_intr(device_t dev, struct resource *res, int flags,
intr->arg = arg;
intr->irq = res->r_bushandle;
intr->flags = flags;
if (flags & INTR_FAST) {
intr->sem = -1;
intr->thread = -1;
if (filter != NULL) {
status = install_io_interrupt_handler(intr->irq,
(interrupt_handler)intr->filter, intr->arg, 0);
} else {
} else if (flags & INTR_FAST) {
status = install_io_interrupt_handler(intr->irq,
intr_fast_wrapper, intr, 0);
}
} else {
snprintf(semName, sizeof(semName), "%s intr", dev->dev_name);