Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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 */