Commit 5cc23666 authored by Steve Zhan's avatar Steve Zhan Committed by Linus Walleij

ARM: ux500: add spin_unlock(&master_lock).

Add the missing spin_unlock statement to unlock
master_lock when prcmu_gic_decouple() return TRUE
Signed-off-by: default avatarsteve zhan <zhanzhenbo@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a1149ae9
...@@ -40,8 +40,10 @@ static inline int ux500_enter_idle(struct cpuidle_device *dev, ...@@ -40,8 +40,10 @@ static inline int ux500_enter_idle(struct cpuidle_device *dev,
goto wfi; goto wfi;
/* decouple the gic from the A9 cores */ /* decouple the gic from the A9 cores */
if (prcmu_gic_decouple()) if (prcmu_gic_decouple()) {
spin_unlock(&master_lock);
goto out; goto out;
}
/* If an error occur, we will have to recouple the gic /* If an error occur, we will have to recouple the gic
* manually */ * manually */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment