提交 5cc23666 编写于 作者: S Steve Zhan 提交者: 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: Nsteve zhan <zhanzhenbo@gmail.com>
Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
上级 a1149ae9
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册