From b07350dbe798364c2eda3bb685deaa2f81d63338 Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Thu, 14 May 2009 15:09:34 +0300 Subject: [PATCH] OMAP3: PM: Added resource refresh to OPP unlock requests This will set the correct OPP after a lock has been released from sysfs. Applies on PM branch. Signed-off-by: Tero Kristo Signed-off-by: Jouni Hogander --- arch/arm/mach-omap2/pm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 2ade72cfb28..c15154450d1 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -115,6 +115,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; } @@ -127,6 +128,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; } -- 2.11.4.GIT