Commit 5f19f14fed7786652b9617c633db101d26a42251

Authored by Paul Mundt
1 parent c30b9c432e

sh: intc: Kill off special reservation interface.

At present reserving the IRLs in the IRQ bitmap in addition to the
dropping of the legacy IRQ pre-allocation prevent IRL IRQs from being
allocated for the x3proto board.

The only reason to permit reservations was to lock down possible hardware
vectors prior to dynamic IRQ scanning, but this doesn't matter much given
that the hardware controller configuration is sorted before we get around
to doing any dynamic IRQ allocation anyways. Beyond that, all of the
tables are __init annotated, so quite a bit more work would need to be
done to support reconfiguring things like IRL controllers on the fly,
much more than would ever make it worth the hassle.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

Showing 3 changed files with 0 additions and 12 deletions Side-by-side Diff

arch/sh/kernel/cpu/sh4a/setup-shx3.c
... ... @@ -494,9 +494,6 @@
494 494  
495 495 void __init plat_irq_setup(void)
496 496 {
497   - reserve_intc_vectors(vectors_irq, ARRAY_SIZE(vectors_irq));
498   - reserve_intc_vectors(vectors_irl, ARRAY_SIZE(vectors_irl));
499   -
500 497 register_intc_controller(&intc_desc);
501 498 }
502 499  
drivers/sh/intc/dynamic.c
... ... @@ -55,12 +55,4 @@
55 55 {
56 56 irq_free_desc(irq);
57 57 }
58   -
59   -void reserve_intc_vectors(struct intc_vect *vectors, unsigned int nr_vecs)
60   -{
61   - int i;
62   -
63   - for (i = 0; i < nr_vecs; i++)
64   - irq_reserve_irq(evt2irq(vectors[i].vect));
65   -}
include/linux/sh_intc.h
... ... @@ -133,7 +133,6 @@
133 133 }
134 134  
135 135 int register_intc_controller(struct intc_desc *desc);
136   -void reserve_intc_vectors(struct intc_vect *vectors, unsigned int nr_vecs);
137 136 int intc_set_priority(unsigned int irq, unsigned int prio);
138 137 int intc_irq_lookup(const char *chipname, intc_enum enum_id);
139 138 void intc_finalize(void);