powerpc: Remove irq_host_ops->remap hook
authorMilton Miller <miltonm@bga.com>
Tue, 10 May 2011 19:30:26 +0000 (19:30 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 19 May 2011 05:31:53 +0000 (15:31 +1000)
It was called from irq_create_mapping if that was called for a host
and hwirq that was previously mapped, "to update the flags".  But the
only implementation was in beat_interrupt and all it did was repeat a
hypervisor call without error checking that was performed with error
checking at the beginning of the map hook.  In addition, the comment on
the beat remap hook says it will only called once for a given mapping,
which would apply to map not remap.

All flags should be known by the time the match hook is called, before
we call the map hook.  Removing this mostly unused hook will simpify
the requirements of irq_domain concept.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/irq.h
arch/powerpc/kernel/irq.c
arch/powerpc/platforms/cell/beat_interrupt.c

index e1983d577688dec2118fb44d39453d95189941f0..6f4a3efb59a9355ccbdd210af2e6b3a05ddb6181 100644 (file)
@@ -88,9 +88,6 @@ struct irq_host_ops {
        /* Dispose of such a mapping */
        void (*unmap)(struct irq_host *h, unsigned int virq);
 
-       /* Update of such a mapping  */
-       void (*remap)(struct irq_host *h, unsigned int virq, irq_hw_number_t hw);
-
        /* Translate device-tree interrupt specifier from raw format coming
         * from the firmware to a irq_hw_number_t (interrupt line number) and
         * type (sense) that can be passed to set_irq_type(). In the absence
index 4a5aa8ca97a57865f8f50ec6a9b5a3578a2e6b0a..0715a09a4101187e4b84974e2ec089a56f8c4906 100644 (file)
@@ -732,8 +732,6 @@ unsigned int irq_create_mapping(struct irq_host *host,
         */
        virq = irq_find_mapping(host, hwirq);
        if (virq != NO_IRQ) {
-               if (host->ops->remap)
-                       host->ops->remap(host, virq, hwirq);
                pr_debug("irq: -> existing mapping on virq %d\n", virq);
                return virq;
        }
index d46f7e47a1dcfc02a3d27a8b33a2b33ce742bdb9..55015e1f69398f6f306c596ea1b877508a7410d4 100644 (file)
@@ -147,16 +147,6 @@ static int beatic_pic_host_map(struct irq_host *h, unsigned int virq,
        return 0;
 }
 
-/*
- * Update binding hardware IRQ number (hw) and Virtuql
- * IRQ number (virq). This is called only once for a given mapping.
- */
-static void beatic_pic_host_remap(struct irq_host *h, unsigned int virq,
-                              irq_hw_number_t hw)
-{
-       beat_construct_and_connect_irq_plug(virq, hw);
-}
-
 /*
  * Translate device-tree interrupt spec to irq_hw_number_t style (ulong),
  * to pass away to irq_create_mapping().
@@ -184,7 +174,6 @@ static int beatic_pic_host_match(struct irq_host *h, struct device_node *np)
 
 static struct irq_host_ops beatic_pic_host_ops = {
        .map = beatic_pic_host_map,
-       .remap = beatic_pic_host_remap,
        .unmap = beatic_pic_host_unmap,
        .xlate = beatic_pic_host_xlate,
        .match = beatic_pic_host_match,
This page took 0.029431 seconds and 5 git commands to generate.