From: Tero Kristo <[email protected]>

This will set the correct OPP after a lock has been released from sysfs.

Applies on PM branch.

Signed-off-by: Tero Kristo <[email protected]>
Signed-off-by: Jouni Hogander <[email protected]>
---
 arch/arm/mach-omap2/pm.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
index dde0af3..58ed520 100644
--- a/arch/arm/mach-omap2/pm.c
+++ b/arch/arm/mach-omap2/pm.c
@@ -166,6 +166,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct 
kobj_attribute *attr,
                attr = &vdd1_opp_attr;
                if (vdd1_locked && value == 0) {
                        resource_unlock_opp(VDD1_OPP);
+                       resource_refresh();
                        vdd1_locked = 0;
                        return n;
                }
@@ -178,6 +179,7 @@ static ssize_t vdd_opp_store(struct kobject *kobj, struct 
kobj_attribute *attr,
                attr = &vdd2_opp_attr;
                if (vdd2_locked && value == 0) {
                        resource_unlock_opp(VDD2_OPP);
+                       resource_refresh();
                        vdd2_locked = 0;
                        return n;
                }
-- 
1.5.4.3

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to