mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
Revert "arm: irq: Allow for specification of no preallocated irqs"
This reverts commit 0bb2b56f7048b2f85be6784eaa8e4a5f0fa8688d. This change is no longer necessary as of the following change, since now we only preallocate 16 IRQs for SPARSE_IRQ configurations. Thus the original problem of the system wasting descriptions due to preallocated irqs no longer exists. Author: Rob Herring <rob.herring@calxeda.com> Date: Tue Jan 3 15:17:23 2012 -0600 ARM: only include mach/irqs.h for !SPARSE_IRQ This also reverts commit ce4b20b3d79cb2785527fa36620252dac23b5259. Since the preallocation scheme has been removed, we need to update the board file to remove the old preallocation specification. Change-Id: I8fd819ae81fa0c8276877c0614653b5e5e14b3e2 Signed-off-by: Michael Bohan <mbohan@codeaurora.org>
This commit is contained in:
parent
1682c9d9f8
commit
3e390e499a
3 changed files with 3 additions and 14 deletions
|
@ -22,7 +22,7 @@ struct machine_desc {
|
|||
const char *const *dt_compat; /* array of device tree
|
||||
* 'compatible' strings */
|
||||
|
||||
int nr_irqs; /* number of IRQs */
|
||||
unsigned int nr_irqs; /* number of IRQs */
|
||||
|
||||
#ifdef CONFIG_ZONE_DMA
|
||||
unsigned long dma_zone_size; /* size of DMA-able area */
|
||||
|
|
|
@ -132,18 +132,8 @@ void __init init_IRQ(void)
|
|||
#ifdef CONFIG_SPARSE_IRQ
|
||||
int __init arch_probe_nr_irqs(void)
|
||||
{
|
||||
/*
|
||||
* machine_desc->nr_irqs < 0 is a special case that
|
||||
* specifies not to preallocate any irq_descs.
|
||||
*/
|
||||
if (machine_desc->nr_irqs < 0) {
|
||||
nr_irqs = 0;
|
||||
return nr_irqs;
|
||||
} else {
|
||||
nr_irqs = machine_desc->nr_irqs ?
|
||||
machine_desc->nr_irqs : NR_IRQS;
|
||||
return nr_irqs;
|
||||
}
|
||||
nr_irqs = machine_desc->nr_irqs ? machine_desc->nr_irqs : NR_IRQS;
|
||||
return nr_irqs;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
@ -85,7 +85,6 @@ DT_MACHINE_START(MSM_DT, "Qualcomm MSM (Flattened Device Tree)")
|
|||
.handle_irq = gic_handle_irq,
|
||||
.timer = &msm_dt_timer,
|
||||
.dt_compat = msm_dt_match,
|
||||
.nr_irqs = -1,
|
||||
.reserve = msm_dt_reserve,
|
||||
.init_very_early = msm_dt_init_very_early,
|
||||
MACHINE_END
|
||||
|
|
Loading…
Reference in a new issue