Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37ebbcff authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

arm: iop13xx: Use sparse irqs for MSI



No need for a private allocator. The core code handles it
already. 

Allocate the non MSI irqs right at boot time via machine_desc->nr_irqs
and let the sparse core handle the MSI space.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Reviewed-by: default avatarGrant Likely <grant.likely@linaro.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-arm-kernel@lists.infradead.org
Link: http://lkml.kernel.org/r/20140507154333.809210026@linutronix.de


Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 67bb90fd
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -480,6 +480,7 @@ config ARCH_IOP13XX
	select PCI
	select PLAT_IOP
	select VMSPLIT_1G
	select SPARSE_IRQ
	help
	  Support for Intel's IOP13XX (XScale) family of processors.

+0 −2
Original line number Diff line number Diff line
@@ -191,6 +191,4 @@ static inline u32 read_intpnd_3(void)
#define NR_IOP13XX_IRQS	(IRQ_IOP13XX_HPI + 1)
#endif

#define NR_IRQS		NR_IOP13XX_IRQS

#endif /* _IOP13XX_IRQ_H_ */
+3 −0
Original line number Diff line number Diff line
#ifndef _IOP13XX_TIME_H_
#define _IOP13XX_TIME_H_

#include <mach/irqs.h>

#define IRQ_IOP_TIMER0 IRQ_IOP13XX_TIMER0

#define IOP_TMR_EN	    0x02
+1 −0
Original line number Diff line number Diff line
@@ -93,4 +93,5 @@ MACHINE_START(IQ81340MC, "Intel IQ81340MC")
	.init_time	= iq81340mc_timer_init,
	.init_machine   = iq81340mc_init,
	.restart	= iop13xx_restart,
	.nr_irqs	= NR_IOP13XX_IRQS,
MACHINE_END
+1 −0
Original line number Diff line number Diff line
@@ -95,4 +95,5 @@ MACHINE_START(IQ81340SC, "Intel IQ81340SC")
	.init_time	= iq81340sc_timer_init,
	.init_machine   = iq81340sc_init,
	.restart	= iop13xx_restart,
	.nr_irqs	= NR_IOP13XX_IRQS,
MACHINE_END
Loading