Skip to content

Commit

Permalink
MIPS: APRP: Fix the linking of rtlx interrupt hook
Browse files Browse the repository at this point in the history
There are 2 errors with the existing aprp_hook linking:
- The prefix CONFIG_ is missing;
- The hook should be linked exclusively in the cases of MT and CMP.
Signed-off-by: Deng-Cheng Zhu <dengcheng.zhu@imgtec.com>
Reviewed-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: john@phrozen.org
Patchwork: https://patchwork.linux-mips.org/patch/6588/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
dczhu authored and ralfbaechle committed Mar 6, 2014
1 parent 4890e2e commit 9c1f6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/mips/mti-malta/malta-int.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static void malta_hw0_irqdispatch(void)

do_IRQ(MALTA_INT_BASE + irq);

#ifdef MIPS_VPE_APSP_API
#ifdef CONFIG_MIPS_VPE_APSP_API_MT
if (aprp_hook)
aprp_hook();
#endif
Expand Down Expand Up @@ -310,7 +310,7 @@ static void ipi_call_dispatch(void)

static irqreturn_t ipi_resched_interrupt(int irq, void *dev_id)
{
#ifdef MIPS_VPE_APSP_API
#ifdef CONFIG_MIPS_VPE_APSP_API_CMP
if (aprp_hook)
aprp_hook();
#endif
Expand Down

0 comments on commit 9c1f6e0

Please sign in to comment.