diff options
author | Jayachandran C <jchandra@broadcom.com> | 2012-10-31 08:01:41 -0400 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-11-09 05:37:20 -0500 |
commit | 38541742da05f65d77e514a70bae9b84251c4bc4 (patch) | |
tree | e7d6ebdb191f3da42009ec614c6b6bb006a7139b /arch/mips/netlogic/common/smp.c | |
parent | bb1e4bc5cdc9dce7680317a4ebf87a12fc8c6a13 (diff) |
MIPS: Netlogic: PIC IRQ handling update for multi-chip
Create struct nlm_pic_irq for interrupts handled by the PIC.
This simplifies IRQ handling for multi-SoC as well as
the single SoC cases. Also split the setup of percpu and PIC
interrupts so that we can configure the PIC interrupts for
every node.
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Patchwork: http://patchwork.linux-mips.org/patch/4467
Signed-off-by: John Crispin <blogic@openwrt.org>
Diffstat (limited to 'arch/mips/netlogic/common/smp.c')
-rw-r--r-- | arch/mips/netlogic/common/smp.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/mips/netlogic/common/smp.c b/arch/mips/netlogic/common/smp.c index e40b467f6184..0315b298a648 100644 --- a/arch/mips/netlogic/common/smp.c +++ b/arch/mips/netlogic/common/smp.c | |||
@@ -114,8 +114,11 @@ void nlm_early_init_secondary(int cpu) | |||
114 | */ | 114 | */ |
115 | static void __cpuinit nlm_init_secondary(void) | 115 | static void __cpuinit nlm_init_secondary(void) |
116 | { | 116 | { |
117 | current_cpu_data.core = hard_smp_processor_id() / NLM_THREADS_PER_CORE; | 117 | int hwtid; |
118 | nlm_smp_irq_init(); | 118 | |
119 | hwtid = hard_smp_processor_id(); | ||
120 | current_cpu_data.core = hwtid / NLM_THREADS_PER_CORE; | ||
121 | nlm_smp_irq_init(hwtid); | ||
119 | } | 122 | } |
120 | 123 | ||
121 | void nlm_prepare_cpus(unsigned int max_cpus) | 124 | void nlm_prepare_cpus(unsigned int max_cpus) |