summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskra <skra@FreeBSD.org>2016-03-01 11:27:58 +0000
committerskra <skra@FreeBSD.org>2016-03-01 11:27:58 +0000
commit1cb2a75f09dbe06b0fa36777131b98db35f7da68 (patch)
tree35709d9c15c3d9c659b7b56642ffff3dab4461ea
parentcaf6d91084139aa8d915abb5618b5b8d27b6406c (diff)
downloadFreeBSD-src-1cb2a75f09dbe06b0fa36777131b98db35f7da68.zip
FreeBSD-src-1cb2a75f09dbe06b0fa36777131b98db35f7da68.tar.gz
Remove an alternative way for dealing with root interrupt controller
which is not complete. Likely, it was forgotten and not removed before committing.
-rw-r--r--sys/kern/subr_intr.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/kern/subr_intr.c b/sys/kern/subr_intr.c
index 9792e4a..1c97fd4 100644
--- a/sys/kern/subr_intr.c
+++ b/sys/kern/subr_intr.c
@@ -88,7 +88,6 @@ MALLOC_DEFINE(M_INTRNG, "intr", "intr interrupt handling");
void intr_irq_handler(struct trapframe *tf);
/* Root interrupt controller stuff. */
-static struct intr_irqsrc *irq_root_isrc;
device_t intr_irq_root_dev;
static intr_irq_filter_t *irq_root_filter;
static void *irq_root_arg;
@@ -894,8 +893,6 @@ int
intr_pic_claim_root(device_t dev, intptr_t xref, intr_irq_filter_t *filter,
void *arg, u_int ipicount)
{
- int error;
- u_int rootirq;
if (pic_lookup(dev, xref) == NULL) {
device_printf(dev, "not registered\n");
@@ -916,24 +913,6 @@ intr_pic_claim_root(device_t dev, intptr_t xref, intr_irq_filter_t *filter,
return (EBUSY);
}
- rootirq = intr_namespace_map_irq(device_get_parent(dev), 0, 0);
- if (rootirq == IRQ_INVALID) {
- device_printf(dev, "failed to map an irq for the root pic\n");
- return (ENOMEM);
- }
-
- /* Create the isrc. */
- irq_root_isrc = isrc_lookup(rootirq);
-
- /* XXX "register" with the PIC. We are the "pic" here, so fake it. */
- irq_root_isrc->isrc_flags |= INTR_ISRCF_REGISTERED;
-
- error = intr_irq_add_handler(device_get_parent(dev),
- (void*)filter, NULL, arg, rootirq, INTR_TYPE_CLK, NULL);
- if (error != 0) {
- device_printf(dev, "failed to install root pic handler\n");
- return (error);
- }
intr_irq_root_dev = dev;
irq_root_filter = filter;
irq_root_arg = arg;
OpenPOWER on IntegriCloud