xtensa: allow variant to initialize own irq chips

There was already a PLATFORM_NR_IRQS define, which is now accompanied
by a VARIANT_NR_IRQS. To be able to initialize these interrupts,
init_IRQ now calls a variant specific hook.

Changes compared to v1:
- adapted to new CONFIG_VARIANT_IRQ_EXT
- removed definition and call of platform_init_IRQ as there already
  is a platform_init_irq defined in asm/platform.h with a weak default
  in kernel/platform.c
- renamed variant_init_IRQ to variant_init_irq

Note that I could not find the call site of platform_init_irq although
it is stated in platform.h that it is called from init_IRQ.

Signed-off-by: Daniel Glöckner <dg@emlix.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
This commit is contained in:
Daniel Glöckner
2009-05-05 15:03:21 +00:00
committed by Chris Zankel
parent bd974240c9
commit 1beee21030
2 changed files with 13 additions and 1 deletions

View File

@@ -197,4 +197,6 @@ void __init init_IRQ(void)
}
cached_irq_mask = 0;
variant_init_irq();
}