rk29: support oprofile

This commit is contained in:
黄涛 2011-01-10 19:27:00 +08:00
parent 340ff20871
commit 88bfaf17ea
2 changed files with 8 additions and 0 deletions

View File

@ -192,11 +192,16 @@ void __init gic_dist_init(unsigned int gic_nr, void __iomem *base,
writel(0, base + GIC_DIST_CTRL);
#ifdef CONFIG_ARCH_RK29
/* rk29 read GIC_DIST_CTR is 2, why? */
max_irq = NR_AIC_IRQS;
#else
/*
* Find out how many interrupts are supported.
*/
max_irq = readl(base + GIC_DIST_CTR) & 0x1f;
max_irq = (max_irq + 1) * 32;
#endif
/*
* The GIC only supports up to 1020 interrupt sources.

View File

@ -368,6 +368,9 @@ static void armv7_pmnc_dump_regs(void)
static int irqs[] = {
#ifdef CONFIG_ARCH_RK29
IRQ_A8IRQ3,
#endif
#ifdef CONFIG_ARCH_OMAP3
INT_34XX_BENCH_MPU_EMUL,
#endif