Skip to content

Commit

Permalink
ARM: ux500: add spin_unlock(&master_lock).
Browse files Browse the repository at this point in the history
Add the missing spin_unlock statement to unlock
master_lock when prcmu_gic_decouple() return TRUE

Signed-off-by: steve zhan <zhanzhenbo@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Steve Zhan authored and Linus Walleij committed Jan 23, 2013
1 parent a1149ae commit 5cc2366
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/mach-ux500/cpuidle.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,10 @@ static inline int ux500_enter_idle(struct cpuidle_device *dev,
goto wfi;

/* decouple the gic from the A9 cores */
if (prcmu_gic_decouple())
if (prcmu_gic_decouple()) {
spin_unlock(&master_lock);
goto out;
}

/* If an error occur, we will have to recouple the gic
* manually */
Expand Down

0 comments on commit 5cc2366

Please sign in to comment.